Azure .NET MVC应用程序遇到异常,即
“找不到网络路径”
在问这个问题之前我搜索过的其他查询的问题是它没有一直发生,它按预期工作但这个问题是每15-25天一次随机发生的.自生产应用程序部署以来已经过了大约50天,并且遇到过两次,而在Azure UAT环境中没有遇到这种情况(用户数量很少).
使用以下命令通过IIS重置暂时解决问题: IISRESET
来源错误:
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)]
任何的想法?
解决方法
清单:
>你能解决这个问题吗?例如,如果您有两个Web服务器和一个数据库,那么它何时会在两个Web服务器上同时发生? >设置所有关键网络路径的监控.开始监视可能的原因(DHCP租约,即使从服务器获得静态IP,也是第一个). >记录尽可能多的信息.您能否确定是从路由器收到ICMP错误还是从主机收到问题?
这些东西,IME,通常是间歇性网络问题,通常是对等连接,数据中心之间等. (编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|