When I open a visual studio 2010 solution with visual studio 2012 I get the following message:
SQL Server Express and LocalDB
In the Web.config file I changed the connectionstring
from:
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename
=|DataDirectory|\databaseName.mdf;Integrated Security=True;User Instance=True"
to:
connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename
=|DataDirectory|\databaseName.mdf;Integrated Security=True"
I can't connect with the database and when I run the application I still get an error message:
An attempt to attach an auto-named database for file (FILE) failed.
A database with the same name exists, or specified file cannot be opened,
or it is located on UNC share.
The attempt to attach to the database failed with the following information:
Failed to generate a user instance of SQL Server due to a failure in starting
the process for the user instance. The connection will be closed.