An error has occurred while establishing a connection to the server.

tracy_thj 2011-04-14 05:36:11
网站出现一下问题http://www.21tg.cn
之前一直都是好的 今天下午突然出现的问题
数据库在本地远程是可以链接的
项目在本地运行也没有问题
就是从网络访问出现一下问题



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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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)

...全文
338 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
wyp19870608 2011-07-08
  • 打赏
  • 举报
回复
我也遇到同样的问题,在我本机运行时没问题,放到服务器上就出现了这个问题
um07590769 2011-06-30
  • 打赏
  • 举报
回复
遇到一样的问题,顶一下
hxj1trees 2011-06-17
  • 打赏
  • 举报
回复
连接ip错咯
tracy_thj 2011-04-14
  • 打赏
  • 举报
回复
在本地测试 远程的数据库可以链接上
  • 打赏
  • 举报
回复
那就先允许下SQL可以远程连接吧
tracy_thj 2011-04-14
  • 打赏
  • 举报
回复
是一样的!
  • 打赏
  • 举报
回复
http://bbs.blueidea.com/archiver/tid-2921803.html
sp4补丁之类的
是不是你连的数据库本地和服务器不一样啊

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧