3

MVC 5 アプリケーションを開発しています。MVC 5 アプリケーションで、App-Data フォルダーから mdf ファイルを作成したいのですが、Add_Data フォルダーの [新しい項目の追加] メニューから mdf ファイルを追加しようとすると、エラーが発生します

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 – Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details

4

1 に答える 1

4

実行してみてください

SqlLocalDB delete “v11.0”

に続く

SqlLocalDB create “v11.0”

SqlLocalDB.exe は にありC:\Program Files\Microsoft SQL Server\110\Tools\Binnます。

于 2013-08-23T14:17:11.950 に答える