找不到网络路径异​​常,随机遇到 [英] Network path not found exception encountered randomly

查看:75
本文介绍了找不到网络路径异​​常,随机遇到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure .NET MVC应用程序遇到异常,即 找不到网络路径"

Azure .NET MVC application is encountering an exception i.e. "The network path was not found"

在问这个问题之前,我搜索的其他查询的问题是它并非一直都在发生,它按预期运行,但此问题却像每15-25天一次那样随机发生.自将应用程序部署到生产中以来,已经有大约50天的时间,并且两次遇到此问题,而在Azure UAT环境(用户数量很少)上却没有遇到.

Problem with the other queries that I searched before asking this question was that its not happening all the time, it's working as expected but this issue is occurring randomly like once every 15-25 days. It has been roughly 50 days since deployment of application on production and encountered this twice, while did not encounter this on Azure UAT environment(where low numbers of users were present).

通过使用以下命令的IIS重置可以临时解决问题: iisreset

Issue is temporarily resolved by IIS reset using the command: iisreset

源错误:

在执行过程中生成了未处理的异常 当前的Web请求.有关原产地和位置的信息 可以使用下面的异常堆栈跟踪来识别异常.

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):找不到网络路径]

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

[SqlException(0x80131904):与网络有关或与实例有关的 建立与SQL Server的连接时发生错误.这 找不到服务器或无法访问服务器.验证实例 名称正确,并且该SQL Server配置为允许远程 连接. (提供者:命名管道提供者,错误:40-无法 打开与SQL Server的连接)]

[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)]

有什么主意吗?

推荐答案

清单:

  1. 您能找出问题所在吗?例如,如果您有两个Web服务器和一个数据库,那么当它发生时是否同时在两个Web服务器上发生?

  1. Can you isolate the problem? If you have two web servers and one db, for example, when it happens does it happen on both web servers at the same time?

设置对所有关键网络路径的监视.开始监视可能的原因(即使您从服务器获得了静态IP,DHCP租约也将是第一个).

Set up monitoring of all critical network paths. Start monitoring possible causes (DHCP leases, even if you get a static IP from the server, would be one of the first).

记录尽可能多的信息.您能确定是从路由器收到ICMP错误还是从主机收到问题?

Log as much information as possible. Can you determine if you are getting an ICMP error from a router or an issue from a host?

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

These things are, IME, usually intermittent network issues and often on peering connections, between data centers, and the like.

这篇关于找不到网络路径异​​常,随机遇到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆