我正在開發的Visual Studio 2012的Web應用程序,我已經添加了一個名爲作爲Database1.mdf數據庫文件放到App_Data文件夾和我給下面的連接字符串provider:命名管道提供程序,error:40 - 無法打開到SQL Server的連接)
Data Source=(LocalDB)\v11.0;AttachDbFilename="E:\asp.net mvc\storage\storage\App_Data\Database1.mdf";Integrated Security=True
後,我寫的代碼插入數據,但在那我得到的錯誤,如
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
有沒有在連接字符串中的任何錯誤? 請幫我在htis
www.connectionstrings.com並作爲錯誤,驗證SQL Server命名實例「已啓動」和SERVICES.MSC運行。 – 2013-03-04 09:10:51