加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 为什么会间歇地得到这个错误? “服务器未找到或无法

发布时间:2020-12-15 22:22:07 所属栏目:asp.Net 来源:网络整理
导读:我们在我们的Web应用程序中随机收到此错误. System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that t
我们在我们的Web应用程序中随机收到此错误.

System.Data.SqlClient.SqlException: A
network-related or instance-specific
error occurred while establishing a
connection to SQL Server. The server
was not found or was not accessible.
Verify that the instance name is
correct and that SQL Server is
configured to allow remote
connections. (provider: Named Pipes
Provider,error: 40 – Could not open a
connection to SQL Server)

如果我们有时间出现错误,但间歇地提出其他事情,这将是有道理的.

有没有人经历过这个?
任何建议或理论?

谢谢!

解决方法

服务器可能无法正常响应 – 您是否使用SQL Express或Workgroup Edition?此外,此服务器一次有多少个连接?这个错误是在某个时间在所有连接上发生的,还是做某些连接被拒绝,而其他连接在同一时间成功?

另外,如果你做一个“PING -t服务器名称”并观察它,每次ping回来还是有些迷路?这可能是网络中断的一个指标,也可能导致此错误.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读