[英]Random “could not establish secure channel for SSL/TLS” errors
I have a WCF application hosted in IIS that work as an intermediate for two other different SOAP web services A & B. 我在IIS中托管了一个WCF应用程序,该应用程序充当另外两个不同的SOAP Web服务A和B的中介。
Calling A service operations from my application is always OK. 从我的应用程序调用A服务操作总是可以的。 Calling B service operations from my application is problematic :
从我的应用程序调用B服务操作是有问题的:
I have noticed that recycling the pool in IIS fixes the problem until the next time. 我注意到,在IIS中回收池可以解决该问题,直到下次。
My application is hosted in two servers and served through a load balancer. 我的应用程序托管在两台服务器中,并通过负载均衡器提供服务。 When I face the above problem in server 1 it is not always the case with the 2nd server as well.
当我在服务器1中遇到上述问题时,第二台服务器也并非总是如此。
What could cause that random error? 什么会导致该随机错误? Any ideas?
有任何想法吗?
Change SecurityProtocolType to ssl3 or Tls1 solve problem for me. 将SecurityProtocolType更改为ssl3或Tls1为我解决了问题。
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls1;
Open Event Viewer on your server you recycle the pool in IIS and check for schannel errors... 在服务器上打开事件查看器,然后在IIS中回收池并检查schannel错误...
I think that this is what cause the problem... 我认为这是导致问题的原因...
https://social.technet.microsoft.com/Forums/windows/en-US/0d66e764-d7d2-4a98-8a0f-27241e31ef7c/schannel-36888-the-following-fatal-alert-was-generated-10-the-internal-error-state-is-10?forum=w7itprosecurity https://social.technet.microsoft.com/Forums/windows/zh-CN/0d66e764-d7d2-4a98-8a0f-27241e31ef7c/schannel-36888-the-following-fatal-alert-was-generation-10-the-内部错误状态为10?论坛= w7itprosecurity
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.