赞
踩
在.NET 4.5中,对此的解决方案是
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
如果您没有.NET 4.5,那么请使用
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
要执行请求前加上
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。