.net 版本为4.8
在win10下载时没问题,换到win7就会出现错误:
复制代码已经在下载前要求了使用tls1.2
复制代码win7下只有部分服务器的文件可以被下载,例如:OneDrive就不行,会报错
win10下则完全没问题
在win10下载时没问题,换到win7就会出现错误:
- The underlying connection was closed: An unexpected error occurred on a send
- ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
win10下则完全没问题
- System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
添加这个代码,使系统兼容所有TLS版本
呆瓜Domado 发表于 2021-7-28 10:45
添加这个代码,使系统兼容所有TLS版本
刚试了下 也还是一样报错 win10就没事