[英]Could not establish secure channel for SSL/TLS with authority from IIS
We are using third party web service to send SMS.我们正在使用第三方 web 服务发送短信。 Web service does not require any certificate and if i enter service address in browser i get below output.
Web 服务不需要任何证书,如果我在浏览器中输入服务地址,我会低于 output。 As the output its confirmed that we do not need any certificate to call this service.
由于 output 确认我们不需要任何证书来调用此服务。
The service is working fine if i call it from my development machine using visual studio but from IIS im getting error如果我使用 Visual Studio 从我的开发机器调用该服务,但从 IIS 调用它,我得到错误
Could not establish secure channel for SSL/TLS with authority.无法为具有权限的 SSL/TLS 建立安全通道。
Try to add this line in your code!尝试在您的代码中添加这一行!
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.