Failed to connect to the web service with anonymous authentication.
请求被中止: 未能创建 SSL/TLS 安全通道。
原因:dll中的方法与服务器进行通信时未启用tls1.2协议
解决:在方法中与服务器通信前添加启用tls1.2协议
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Failed to connect to the web service with anonymous authentication.
请求被中止: 未能创建 SSL/TLS 安全通道。
原因:dll中的方法与服务器进行通信时未启用tls1.2协议
解决:在方法中与服务器通信前添加启用tls1.2协议
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;