gpt4 book ai didi

sql - 随机遇到网络路径未找到异常

转载 作者:行者123 更新时间:2023-12-04 08:51:21 24 4
gpt4 key购买 nike

Azure .NET MVC 应用程序遇到异常,即
“找不到网络路径”
我在问这个问题之前搜索过的其他查询的问题是它不是一直发生,它按预期工作,但这个问题是随机发生的,就像每 15-25 天一次一样。在生产环境中部署应用程序已经有大约 50 天了,遇到过两次,而在 Azure UAT 环境(存在少量用户)时没有遇到过这种情况。
问题通过使用以下命令重置 IIS 暂时解决:
重置
源错误:

An unhandled exception was generated during the execution of thecurrent web request. Information regarding the origin and location ofthe exception can be identified using the exception stack trace below.


堆栈跟踪:

[Win32Exception (0x80004005): The network path was not found]

[SqlException (0x80131904): A network-related or instance-specificerror occurred while establishing a connection to SQL Server. Theserver was not found or was not accessible. Verify that the instancename is correct and that SQL Server is configured to allow remoteconnections. (provider: Named Pipes Provider, error: 40 - Could notopen a connection to SQL Server)]


任何的想法?

最佳答案

list :

  • 你能隔离问题吗?例如,如果您有两台 Web 服务器和一个数据库,那么它发生时是否会同时在两台 Web 服务器上发生?
  • 设置对所有关键网络路径的监控。开始监控可能的原因(DHCP 租约,即使您从服务器获得静态 IP,也将是第一个原因)。
  • 记录尽可能多的信息。您能否确定您是从路由器收到 ICMP 错误还是从主机收到问题?

  • 这些东西是,IME,通常是间歇性的网络问题,通常是在数据中心之间的对等连接上,等等。

    关于sql - 随机遇到网络路径未找到异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38696448/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com