PayPal的CallerServices在localhost上运行,但不在服务器上运行

时间:2010-08-01 00:44:39

标签: paypal paypal-soap

我的PayPal Direct脚本在我的机器上运行良好。 nUnit测试和通过localhost上的网站。但是,第一行代码在我的服务器和另一台服务器上失败。 (都完全信任)

CallerServices caller = new CallerServices();

消息:'com.paypal.sdk.core.soap.SOAPAPICaller'的类型初始化程序引发了异常。 来源:paypal_base

堆栈追踪:

at com.paypal.sdk.core.soap.SOAPAPICaller..ctor()    在com.paypal.sdk.services.CallerServices..ctor()    在TS.Common.BusinessLogic.PaymentGateways.PayPalProController.CChargeCard(String paymentAmount,Order CurrentOrder,String creditCardType,String creditCardNumber,String CVV2,String expMonth,String expYear,PaymentActionCodeType paymentAction,Transaction& transaction)    在TS.Common.BusinessLogic.PaymentGateways.PayPalProController.ChargeCard(订单CurrentOrder,Decimal Amount,String CreditCardNum,String ExpMonth,String ExpYear,String SecurityNumber,Transaction& transaction)    在OrderController.SubmitCreditCardPayment(订单,Decimal ChargeAmount,String CreditCardNum,String ExpMonth,String ExpYear,String Var,String CardType,Transaction& transaction)    在OrderController.SubmitOrder(订单,交易和交易,Nullable`1 GiftCertId,String CreditCardNum,String ExpMonth,String ExpYear,String Var,String CardType,String Culture)    在Checkout.btnOrder_Click(Object sender,EventArgs e)的d:\ Inetpub \ tickets \ Checkout.aspx.cs:第488行

2 个答案:

答案 0 :(得分:4)

添加log4net.dll,如果没有将它放在你的bin文件夹中并添加引用。它对我有用......

答案 1 :(得分:1)

仅使用特定版本添加对log4net.dll的引用。它会起作用