解决请求被中止: 未能创建 SSL/TLS 安全通道

原文链接:https://blog.csdn.net/qq_30412045/article/details/124819059

 https://q.cnblogs.com/q/98826

 

升级 .NET Framework版本4.6及以上成功解决;

 

加上这段话也可以解决

ServicePointManager.ServerCertificateValidationCallback += (s, cert, chain, sslPolicyErrors) => true;

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

posted @ 2025-05-21 16:09  yinghualeihenmei  阅读(313)  评论(0)    收藏  举报