我终于找到了答案(我没有注明出处,但来自搜索);
当代码在Windows XP中运行时,在Windows 7中,必须在开头添加以下代码:
// using System.Net;ServicePointManager.Expect100Continue = true;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;// Use SecurityProtocolType.Ssl3 if needed for compatibility reasons
现在,它可以完美运行。
附录
如罗宾·法文(Robin
French)所述;如果您在配置PayPal时遇到此问题,请注意,它们将从2018年12月3日开始不支持SSL3。您需要使用TLS。这是关于此的贝宝页面。



