简体   繁体   中英

Cybersource simple order api sample application gives “The type initializer for 'CyberSource.WSSecurity.Signature' threw an exception.”

I was running the simple order api sample application using SOAP which we can download from Cybersource official website. I changed the merchantid and securitykey path as per documentation . But wheneve I run the application im getting error

"The type initializer for 'CyberSource.WSSecurity.Signature' threw an exception."

I browsed through various post, but nobody tells clearly what to do . I have installed MS WPE 3.0 but still getting same error.

The web server does not have the Microsoft WSE 3.0 addon installed.

Install the MS WSE 3.0 addon on the server. That is a free download from here .

在我从网络源业务中心生成一个新的soap-toolkit密钥并在我的应用程序中使用它之后解决了。

此外,如果您尝试在比XP / Win 2003更新的东西上使用此功能并使用iis7或更高版本:请确保您的应用程序池已启用32位应用程序为TRUE。

I have similar issue, I downloaded new Security Keys for the SOAP Toolkit API and changed the Project properties to Build->Target Platform to X86. It worked

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM