The error message is as follows:
There is a problem with the selected data store. The reason may be that the server name or credentials are invalid, or the permissions are insufficient. It may also be caused by the role manager feature not being enabled. Please click the button below
to be redirected to the page where you can select a new datastore.
The following message may help diagnose the problem: Unable to connect to SQL Server database.
The solution is as follows:
1. Create a new database, such as Hmx;
2. The ASP.NET SQL Server registration tool is used to create a Microsoft SQL Server database for use by the SQL Server provider in ASP.NET, or to add or move an existing database. Remove option. The Aspnet_regsql.exe file is located in the [drive:]WINDOWSMicrosoft.NETFrameworkversionNumber folder on the Web server. Run a boot: configure sql server for the application service, select "Hmx" for the database.
3. Open IIS in the management tool, create a new virtual directory Logintest, right-click the mouse, then left-click the menu item [Properties], [ASP.NET] tab, [Edit Configuration] button, and click [Connection] on the [General] tab. String Manager], click the [Edit] button, and change the [Connection Parameters] to the corresponding database connection string that can connect to the database Hmx, such as "Data Source=.;InitialCatalog=Hmx;Persist Security Info=True;User ID=sa;Password=sa".
In this way, you can use the ASP.NET website management tool to manage users and permission roles.