The LocalSqlServer connection string is defined in the Machine.config file.
If you do not have a default Machine.config file, it can be deleted. Then you will need to re-add it to your own Web.config.
My LocalSqlServer:
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
Here you can find your machine.config file:
C:\Windows\Microsoft.NET\Framework\[FRAMEWORK VERSION]\CONFIG\machine.config
Maxime rouler
source share