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

标签 sql asp.net-mvc networking azure-web-app-service

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

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the 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-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)]


任何的想法?

最佳答案

list :

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

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

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

    相关文章:

    php - 下拉列表中的 if 语句取决于数据库值和用户登录

    c# - 区分 ASP.NET MVC4 中的空参数和缺失参数

    javascript - 如何检测浏览器是否启用javascript s.t.母版页能做出正确的 react 吗?

    iphone - 在iPhone上,是否可以查出我们连接的是哪个WIFI网络?

    algorithm - 数据一致性算法

    linux - linux中eth1上的静态IP地址

    mysql - MySQL 中何时使用单引号、双引号和反引号

    sql - SQLite3 中的内部连接

    MySQL:选择一组的最后一个 Max() 值,但由另一组进行汇总

    asp.net-mvc - CRUD 编辑 View 的输入模型与 View 模型