2

我正在尝试在 Visual Studio 2008 上使用 .NET 3.5 应用程序,运行 Mono 2.10.2 和 Apache(使用 mod-mono)来执行 PayPal 付款。我正在使用 PayPal 沙箱,当我在本地调试或运行时,该解决方案可以完美运行。在使用 Mono 的服务器上运行时,它会在以下几行之后超时:

PayPalAPIAASoapBinding ws = PayPalUtils.BuildPayPalWebservice();

SetExpressCheckoutResponseType resp = ws.SetExpressCheckout(req);

出现以下错误:

System.Net.WebException: The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x0005f] in /usr/src/redhat/BUILD/mono-2.10.2/mcs/class/System/System.Net/HttpWebRequest.cs:752 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00069] in /usr/src/redhat/BUILD/mono-2.10.2/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs:367 

我已经为https://www.sandbox.paypal.com运行了 ssl 导入,并且我已经运行了 mozroots 导入以从 Mozilla 引入所有 ssl 证书。

欢迎任何想法或建议!

4

0 回答 0