Server Error in '/' Application.
--------------------------------------------------------------------------------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) /////////////////////////////////////////////////
我在本机上采用winxp+mssql2000+vs.net2005开发,一切OK.
但发布到服务器上(win2003+mssql2000)出现以上问题.弄了很久,没有办法解决,请高手指点一二,谢谢!!!!

解决方案 »

  1.   

    不能连接数据的嘛   你web.config里  数据是怎么写的啊
      

  2.   

    sql 连接配置语句有问题 检查下
      

  3.   

    <add name="qdhConnectionString" connectionString="Data Source=WUJIANPING;Initial Catalog=qdh;User ID=sa;Password=1" providerName="System.Data.SqlClient"/>
    </connectionStrings>问题是:我服务器根本就没有装ms sql server2005
    但它报sql 2005的错误.我想这个数据库连接是没有问题的!
      

  4.   

    报错的信息说它走的是管道,而不是TCP/IP.
    它默认了管道而不是TCP/IP.别的我想没有问题的,现在就是不知道在哪设置,使它不走管道.走TCP/IP.
      

  5.   

    Server Error in '/hotel' Application.