Winform .net 4.x 请求被中止: 未能创建 SSL/TLS 安全通道问题解决
参考
环境
| 环境 | 版本 | 说明 | 
|---|---|---|
| Windows | Windows 10 家庭中文版 22H2 19045.4412 | |
| VS Code | 1.90.0 | |
| Microsoft Visual Studio | Microsoft Visual Studio Community 2022 (64 位) - 17.6.5 | 支持.net 4.x 程序需要额外配置。 | 
| Microsoft .Net SDK | 4.8 | 手动安装 | 
正文
//todo:指定请求包的安全协议,因为不知道你当前项目到底是哪个版本所以为了安全保障都加上
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.SystemDefault | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls13;

    博  主 :夏秋初
地 址 :https://www.cnblogs.com/xiaqiuchu/p/18248963
 
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。
    
地 址 :https://www.cnblogs.com/xiaqiuchu/p/18248963
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号