随机EndpointNotFoundException [英] Random EndpointNotFoundException

查看:55
本文介绍了随机EndpointNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在开发一个WCF 4.5应用程序,该业务的域服务器正在运行WCF服务,4域中的客户端连接到这些服务。在服务器上运行的服务有很多端点发布
(超过100)。该服务作为Windows服务托管,客户端通过net.tcp进行通信。

目前我正在接收随机出现一个EndpointNotFoundException,有时它会在几个小时内没有问题地运行,但通常用户每天至少会看到一次此异常。

没有特定的终点导致这种情况,它完全随机。

 

当异常发生时,用户通常不能再登录,因为它会再次抛出EndpointNotFoundException。我们发现通常可行的解决方法是断开网络适配器并重新连接。

这大部分时间都解决了这个问题需要几个小时或一天。

 

我研究了日志文件和WCF跟踪,但只能看到找不到端点。

我已经在服务器上启用了端口共享,这导致了较少的这些异常,但它们仍然存在。

 

任何人都可以在这里建议可能存在的问题,或者我如何调试这个以找到根原因?

 

提前致谢。

 

Marcel

推荐答案

你好Marcel,

hello Marcel,

我猜你已经在网上搜索过并发现其他人遇到过这个问题:

I am guessing you have scoured the web and have found that others have encountered this:

https://stackoverflow.com/questions/10125973/ wcf-endpointnotfoundexception-after-running-for-a-couple-of-seconds

https://stackoverflow.com/questions/10125973/wcf-endpointnotfoundexception-after-running-for-a-couple-of-seconds

https://stackoverflow.com/questions/24274187/how-do-i-resolve-a- wcf-random-endpoint-not-found-exception

https://stackoverflow.com/questions/24274187/how-do-i-resolve-a-wcf-random-endpoint-not-found-exception

结合处理底层问题,我建议您检测此错误并执行重试。  以下是一个例子,

In combination with handling the underlying issue, I suggest you detect this error and perform a retry.  Here is an example,

https://codereview.stackexchange.com/questions/41692/consistent-way-to-handle-transient-timeouts-with-wcf-calls-超时 - 不可靠

https://codereview.stackexchange.com/questions/41692/consistent-way-to-handle-transient-timeouts-with-wcf-calls-timeouts-unreliable

您可能会发现这已足够(虽然不理想)。

You might find that this is sufficient (though not ideal).


这篇关于随机EndpointNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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