If you have not changed the basic configuration used by the MVC 5 web template, the connection string name for ASP.NET Identity is "DefaultConnection". Try creating a connection string with this name and configure it on the sql server.
If you used the web API template, the default value is “No Authentication”, as shown in the figure below.

If the No Authentication option is selected, the corresponding assemblies for ASP.NET authentication are not installed, the account controller is not created, and web.config is not updated with the connection string. Note that MVC is still included in the template.
If you want to use the ASP.NET identifier, select "Modify Authentication" and select "Individual Accounts"

Now you have all the necessary assemblies, ASP.NET Identity is connected in the launch configuration, and the default connection string is in your web.config.
<configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections> <connectionStrings> <add name="DefaultConnection" connectionString="Data Source= (LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-TestWebApiTemplateWithAuth20140218082219.mdf;Initial Catalog=aspnet-TestWebApiTemplateWithAuth- 20140218082219;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>
Please note that you are also configured for the Entity Framework and have the correct builds for this. By default, ASP.NET Identity uses EF code to store data. By default, the local database is used. Just change this connection string to use SQL Server database.
If you want to change the underlying data warehouse to something other than the SQL Server tutorial, you can read it here . This specific guide shows how to change it to MySql.
Kevin junghans
source share