每当我尝试启动aspx页面时,都会收到此错误消息。 whic连接此连接字符串SQL错误:错误:40 - 无法打开与SQL Server的连接
SqlConnection conn = new SqlConnection("Data Source=192.168.xxx.xxx;Initial Catalog=DBSample;User ID=dev;Password=pass;Integrated Security=SSPI;"))
怪异的事情在
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
是我正在连接服务器已经举办一些aspx页面。我不知道,如果我的connectiong字符串中缺少感谢。我知道我连接的服务器已经被允许远程连接,因为它已经托管了一些aspx网站。 :(
谢谢!
嗨,先生,顺便说一句我做了这个项目在不同的服务器,它正在成功运行,然后当我试图通过IIS实时上传它,它确实返回该错误。谢谢 – Sherwin 2010-02-11 10:24:02
检查我编辑的帖子。 – 2010-02-11 11:00:11
所以问题出在服务器上?或者它在我的连接字符串中? – Sherwin 2010-02-12 00:50:34