Today ran an official website example of the time to see such a mistake, instinctively think of the lack of such a database.
This can be done through Aspnet_regsql.exe, which is located under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\.
1, the window will pop up after running it: Press "Next >" button
2, we will find that in addition to the configuration database, there is the ability to delete the database, may come in handy later, now naturally choose Configure SQL Server for application services, press the "Next >" button
3, now enter the database selection interface, if SQL Server is installed locally, you can not change anything, directly press "Next >". The database here shows that the default is ASPNETDB, and you can change the name according to your needs.
From for notes (Wiz)
About "Unable to open the database requested by login" ASPNETDB. Login failed. ”