Visual Studio 2012 で Visual Studio 2010 ソリューションを開くと、次のメッセージが表示されます。
Web.config ファイルで、接続文字列を変更しました
から:
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename
=|DataDirectory|\databaseName.mdf;Integrated Security=True;User Instance=True"
に:
connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename
=|DataDirectory|\databaseName.mdf;Integrated Security=True"
データベースに接続できず、アプリケーションを実行してもエラー メッセージが表示されます。
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.