注册 登录
编程论坛 ASP.NET技术论坛

[讨论]在买来的空间上发布出的问题

copy462829 发布于 2007-07-13 11:14, 535 次点击
我是用的 sql2000+vs2005 开发的程序 在发布的时候

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)

<add key ="aa" value ="server=WWW-4PF7;database=witkey;uid=sa;pwd=;"/>
server=www-4PF7 是读的服务期上的计算机名

程序在本机IIS发布没问题, 可是拿到买来的空间上去发布就出了这样的问题,请高手指点
4 回复
#2
bygg2007-07-13 11:41
路径不对..上传后就应该是网络上的了..
#3
copy4628292007-07-13 12:14
<add key ="aa" value ="server=WWW-4PF7;database=witkey;uid=sa;pwd=;"/>
是这里不对吗??
#4
bygg2007-07-13 12:35
请问你的WWW-4PF7服务器设在哪里的??
#5
copy4628292007-07-13 19:47

问题以解决 谢谢

1