我正在开发一个MVC 5应用程序。在我的MVC 5应用程序中,我想从App-Data文件夹创建一个mdf文件但是当我想从Add_Data文件夹的Add New Item菜单添加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
答案 0 :(得分:4)
尝试运行
SqlLocalDB delete “v11.0”
接着是
SqlLocalDB create “v11.0”
SqlLocalDB.exe位于C:\Program Files\Microsoft SQL Server\110\Tools\Binn
。