我们的WCF客户端通常会调用Web服务。客户端的所有部署都调用同一个Web服务。在大多数部署它使没有任何问题的呼吁,除了在一个实例它报告了以下异常:wcf客户端仅在一次情况下报告SSL异常
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
什么能与这一个安装有什么不同?
我们测试了客户端用来在浏览器中调用Web服务的URL。 Web服务在Firefox中返回响应,但不在IE中。
可能是一个腐败的证书存储区,或类似的东西。 – 2014-09-30 20:13:23
托管wcf客户端的Windows计算机上存在损坏的证书存储区?纠正它的最佳方法是什么? – 2014-09-30 20:14:46
第一步是删除,然后重新安装证书。 IE显示什么错误? – 2014-09-30 20:15:57