无法使用权​​限 'epayment.dubai.ae' 为 SSL/TLS 建立安全通道。 .NET 框架 4.5

Could not establish secure channel for SSL/TLS with authority 'epayment.dubai.ae'. .NET Framework 4.5

我从我的网站收到此错误,当我重置 IIS 一段时间后它可以正常工作,但随后它开始抛出相同的错误并且在我再次重置后它会再次工作。

我已尝试更改 GLobal_asax application_start 安全协议:

System.Net.ServicePointManager.SecurityProtocol = CType(3072, System.Net.SecurityProtocolType)
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12


If System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType.Ssl3 Or SecurityProtocolType.Tls) Then
   System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls12

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

所有这些都返回相同的结果

我正在使用 iis 8.5,windows 服务器 2012

我们已经安装了支付提供商的根证书,解决了这个问题