The request was aborted: Could not create SSL/TLS secure channel.
2012-10-22 16:27
796 查看
最近项目里面遇到的一个问题:代码在Test和Dev的Server上都运行的很好,但是部署到staging或者产品环境后,在调用一个webservice的时候(使用clientcertificate)就发现有这个error:
打开System.Nettrace以后,可以看到有下面的错误:
根据这篇文章的说法,把client端的assembly用.net4重新编译一下,问题就不再出现了.以前client端的assembly是.net3.5下编译的.
但是奇怪的是Test和Dev的server上面都是没有问题的.
Therequestwasaborted:CouldnotcreateSSL/TLSsecurechannel.[/code]
打开System.Nettrace以后,可以看到有下面的错误:
DecryptreturnedSEC_I_RENEGOTIATE.
AcquireCredentialsHandle()failedwitherror0X8009030D.
根据这篇文章的说法,把client端的assembly用.net4重新编译一下,问题就不再出现了.以前client端的assembly是.net3.5下编译的.
http://blogs.msdn.com/b/dsnotes/archive/2012/01/10/acquirecredentialshandle-fails-with-sec-e-unknown-credentials-from-a-wcf-application.aspx
但是奇怪的是Test和Dev的server上面都是没有问题的.
相关文章推荐
- 关于解决 请求被中止:无法建立SSL / TLS安全通道(The request was aborted: Could not create SSL/TLS secure channel)的问题
- 偶尔遇到的“The request was aborted:Could not create SSL/TLS secure channel.”怎么解决?
- [bug]The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
- SSL HttpWebRequest in C# "Could not create SSL/TLS secure channel
- EX:The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
- The underlying connection was closed:Could not establish trust relationship for the SSL/TLS secure
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- WCF分布式开发常见错误(24):Could not establish trust relationship for the SSL/TLS secure channel with authority
- WCF分布式开发常见错误(24):Could not establish trust relationship for the SSL/TLS secure channel with authority(转)
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- Could not establish trust relationship for the SSL/TLS secure channel
- WCF Could not establish trust relationship for the SSL/TLS secure channel with authority
- https请求时出错:Could not establish trust relationship for the SSL/TLS secure channel
- 请求被中止: 未能创建 SSL/TLS 安全通道,以及解决方法,即:Could not create SSL/TLS secure channel
- “Could not establish trust relationship for the SSL/TLS secure channel with authority”
- Could not create the view: An unexpected exception was thrown.解决办法
- Java进阶(五十一)Could not create the view: An unexpected exception was thrown
- Could not create the view: An unexpected exception was thrown.问题解决
- Could not create the view: An unexpected exception was thrown 【转】
- MyEclipse启动:Could not create the view: An unexpected exception was thrown.