I keep getting the following error when I click on the Security tab in ASP.NET WebSite Administration Tool.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
This is exactly what i've done so far:
- Create a New Empty Web Site.
- Create a Database in
/App_Data
namedASPNETDB.MDF
- Run command line:
Aspnet_regsql.exe -A all -E -d (mywebsitepath)/App_Data/ASPNETDB.MDF
- Go to ASP.NET WebSite Administration Tool and click on the security tab.
What am I doing wrong?