(C# ,asp.net)项目部署到服务器时报错了!

来源:百度知道 编辑:UC知道 时间:2024/05/25 13:19:00
我自己远程连接到别的SQL或别人连接到我的SQL都正常!

我把项目安装在服务器上!却报这样一个连接不到SQL2005,我用都是SQL2000

服务器可以远程连接到我SQL查询分离器,也可以远程访问!

这是错误的提示!

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)

这显然是你的安装程序连接不到SQL数据库造成的!!

你数据库连接到别人的机子时,看能不能ping 的通啊!

你把项目的安装在服务器时,看服务器能不以连接数据库

当然,这个取决与你的SQL SERVER 2005版本,要是EXPRESS版本,这样确实无法连接,要开始TCP/IP访问权限的。

要是Enterprise版本,就没关系了。