I have a problem with my first ASP.NET webforms app. I'm following a Microsoft tutorial. When I'm running the application to create the database for first time, this error appears in the browser:
Server Error in '/' Application.
Invalid value for key 'attachdbfilename'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: Invalid value for key 'attachdbfilename'.
I'm not sure if my connection string is fine
DESKTOP-6ANEE4G\MSSQLSERVER01
this is the name of my database.
<connectionStrings>
<add name="DefaultConnection"
connectionString="Data Source=(DESKTOP-6ANEE4G\MSSQLSERVER01)\v11.0;Initial Catalog=aspnet-WingtipToys;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="WingtipToys"
connectionString="Data Source=(DESKTOP-6ANEE4G\MSSQLSERVER01)\v11.0;AttachDbFilename=|DataDirectory|\wingtiptoys.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>