如何解决WCF随机端点未找到异常?

时间:2014-06-17 22:15:33

标签: c# .net web-services wcf iis

问题: 我一直在研究与WCF端点未找到异常相关的问题。我们在apppool上运行大约30个WCF服务,每晚都进行回收。它的队列大小为1000.所有服务都有basichttpbinding,打开/关闭超时为1分钟,接收超时为10分钟。 Windows Server 2008和IIS 7用于托管服务

例外:

Type: EndpointNotFoundException
Details: There was no endpoint listening at https://url.com/WCFServices/LoginService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

内部例外:

Type: System.Net.WebException
Details: The Remote name could not be resolved.

故障排除:

  • 问题全天随机发生。仅在登录服务和其他服务上发生不受影响。
  • 已完成IIS性能监控,队列未达到1000。
  • IIS apppool在中午不会重启。它已配置为在凌晨2点回收。
  • 服务器端没有例外。
  • 在服务器和客户端上启用WCF日志记录。客户端显示未找到结束点的异常。服务器上没有例外。

    图片:enter image description here

请告诉我我们可以做些什么,因为我的选项已用完。

1 个答案:

答案 0 :(得分:0)