【发布时间】:2014-12-08 19:56:25
【问题描述】:
我们有一个网络应用程序,它偶尔会向第三方网络服务发出 HTTPS 请求。大多数时候,这些工作没有问题。然而,有时应用程序会开始对每个请求抛出异常:
System.Net.WebException: The underlying connection was closed: Could not establish
trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote certificate is
invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
...etc...
现在奇怪的是,当我们回收 Web 应用程序时,异常停止被抛出。反正有一段时间了。
【问题讨论】: