开发者

PayPal's CallerServices Works on localhost but not server

开发者 https://www.devze.com 2023-01-09 13:20 出处:网络
My PayPal Direct script works perfect on my machine. Both nUnit tests and via a website on localhost. However this first line of code fails on my server and another server. (both full trust)

My PayPal Direct script works perfect on my machine. Both nUnit tests and via a website on localhost. However this first line of code fails on my server and another server. (both full trust)

CallerServices caller = new CallerServices();

Message: The type initializer for 'com.paypal.sdk.core.soap.SOAPAPICaller' threw an exception. Source: paypal_base

Stack Trace:

at com.paypal.sdk.core.soap.SOAPAPICaller..ctor() at com.paypal.sdk.services.CallerServices..ctor() at TS.Common.BusinessLogic.PaymentGateways.PayPalProController.CChargeCard(String paymentAmount, Order CurrentOrder, String creditCardType, String creditCardNumber, String CVV2, String expMonth, String expYear, PaymentActionCodeType paymentAction, Transaction& transaction) at TS.Common.BusinessLogic.PaymentGateways.PayPalProController.ChargeCard(Order CurrentOrder, Decimal Amount, String CreditCardNum, String ExpMonth, String ExpYear, String SecurityNumber, Transaction& transaction) at OrderController.SubmitCreditCardPayment(Order order, Decimal ChargeAmount, String CreditCar开发者_JAVA技巧dNum, String ExpMonth, String ExpYear, String Var, String CardType, Transaction& transaction) at OrderController.SubmitOrder(Order order, Transaction& transaction, Nullable`1 GiftCertId, String CreditCardNum, String ExpMonth, String ExpYear, String Var, String CardType, String Culture) at Checkout.btnOrder_Click(Object sender, EventArgs e) in d:\Inetpub\tickets\Checkout.aspx.cs:line 488


Add log4net.dll , if not put it in your bin folder and add reference. It works for me...


Add the reference to the log4net.dll with the specific version only. It will work

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号