请帮助我。我得到这个错误:错误:在VS2010中尝试访问集成数据库中的数据时出现错误:
'/'应用程序中的服务器错误。
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)
源错误:
Line 29: SqlConnection con = new SqlConnection(conStr);
Line 30: SqlCommand cmd = new SqlCommand("Select * from SingUp", con);
Line 31: con.Open();
Line 32: using(con)
Line 33: {
Source File: C:\Users\My\Documents\Visual Studio 2010\myproject1\Asad\PostAvertisement.aspx.cs Line: 31
是您的连接字符串'conStr'有效吗? – jordanhill123 2013-03-26 08:26:58