以前我的C#项目目标.Net框架4.6.1,在窗口7、8.1和10中工作良好。但是现在我将目标框架更改为.Net Framework4.8、window 8.1和10,但在HTTP中没有问题,但是fine 7错误。
"An error occurred while making the HTTP request to https://Test.123.com/API/ServiceRouter.svc. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server."备注
Http请求操作刚刚从我的服务platform.
上编码
发布于 2021-09-26 03:06:49
大洲春。这段代码解决了我的问题:
"System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;"谢谢。
https://stackoverflow.com/questions/67915720
复制相似问题