CyberSource is throwing exception

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
hubsun
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Nov 10, 2008 4:01 am

CyberSource is throwing exception

Post by hubsun » Fri Jan 09, 2009 12:56 am

Hi,

We are having one store on the production server and it is running properly. Now we need to move this store another server and we moved the store site to another server as specified in the ablecommerce movement procedure. Now we are testing the payment procedure and we used Cybersource as payment gateway. We are getting the following error in the payments status,

The type initializer for 'CyberSource.WSSecurity.Signature' threw an exception.
AVS:Unknown ()
CVV:Unknown ()

We have installed WSE 3.0 on the new server.
We have not installed the Cybersource client application on new server. instead we copied the lib folder from the running production server to new server and then registered CybsWSSecurity.dll using regsvr32 CybsWSSecurity.dll command. and DLL is registered successfully. But still getting the above error.

Please any one can provide the solution for this issue.

Thanks,
Sunil

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: CyberSource is throwing exception

Post by sohaib » Fri Jan 09, 2009 10:17 am

Can you have a look at your App_Data/Logs/app.log file and see if there are any detailed log of the exception?

hubsun
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Nov 10, 2008 4:01 am

Re: CyberSource is throwing exception

Post by hubsun » Fri Jan 09, 2009 12:19 pm

Pls see the log. Thanks in advance for help.
ERROR 2009-01-09 10:05:46,826 46965719ms Object a - Provider threw exception in DoAuthorize.
System.TypeInitializationException: The type initializer for 'CyberSource.WSSecurity.Signature' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {698BFD43-76AA-4D13-98FE-5BE9FF5E05B8} failed due to the following error: 80040154.
at CyberSource.WSSecurity.Signature..cctor()
--- End of inner exception stack trace ---
at CyberSource.WSSecurity.Signature.get_Version()
at CyberSource.Base.CybsPolicy.get_SecurityLibraryVersion()
at CyberSource.Clients.NVPClient.SetVersionInformation(Hashtable request)
at CyberSource.Clients.NVPClient.RunTransaction(Configuration config, Hashtable request)
at CommerceBuilder.Payments.Providers.CyberSource.PaymentProvider.SendRequestToProvider(Hashtable providerRequest)
at CommerceBuilder.Payments.Providers.CyberSource.PaymentProvider.DoAuthorize(AuthorizeTransactionRequest authorizeRequest)
at CommerceBuilder.Payments.PaymentEngine.a(AuthorizeTransactionRequest A_0, Boolean A_1)

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: CyberSource is throwing exception

Post by sohaib » Fri Jan 09, 2009 12:42 pm

It looks like a COM registration error. It should get solved if you do register CybsWSSecurity.dll from Bin folder using regsvr32 command on the server you are running your website on.
You may also try reinstalling the CyberSource .NET client
http://apps.cybersource.com/cgi-bin/pag ... T/_.NET2.0

Post Reply