C# 关于“请求已中止:无法创建SSL / TLS安全通道”的问题
|
admin
2023年5月23日 9:56
本文热度 3999
|
由于供应商升级ssl,上生产前运行ok就没注意有这个问题,等运行一段时间后发现每过一段时间就会提示一次,百思不得其解,后面来了。

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
这行代码 要放在创建请求前面 特此记录一下。
该文章在 2023/5/23 9:56:01 编辑过