WebClient请求网络时跳错:“请求被中止: 未能创建 SSL/TLS 安全通道”,英文为“The request was aborted: Failed to create SSL/TLS secure channel.”。这里需要加入下面设置:

ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
       | SecurityProtocolType.Tls11
       | SecurityProtocolType.Tls12
       | SecurityProtocolType.Ssl3;

如果项目是.NET FrameWork2.0或3.0或3.5需要升级到.net Framework 4.5才可用。如下图:

WebClient 关联错误:“远程服务器返回错误: (403) 已禁止。”,英文为“The remote server returned an error: (403) Forbidden.” 这个一般需要加入签名,加入"user-agent"用户代理设置,有时访问服务器被限制匿名代理请求,需要设置“    webClient.Headers.Add("user-agent", "**自己定义****");”。