: 基础连接已经关闭: 发送时发生错误。
目标积极拒绝。
在使用下面代码时,发生上面的问题。
oHttp_Web_Req.GetResponse();
查找了很多,都不对,只有以下这种方案是最靠谱的。
解决办法是这样的:
= | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12|SecurityProtocolType.Ssl3;
= delegate { return true; };
= false;
= 512;
ServicePointManager.Expect100Continue = false;
HttpWebRequest oHttp_Web_Req = (HttpWebRequest)("");