FirstData WebService giving error

北慕城南 提交于 2019-12-25 08:39:55

问题


My First data web service code is working fine on local machine. Followed Patricker answer here at stackoverflow Link To Code for WebService .Problem is when I deploy it on server I get error.

Am I missing any WebService DLL or dependency because I don't see anything in my deployable file created with VS2010 using Build Deployment Package for upload.

I have noticed onething in the error. Path is C:\Users\Chris\Documents\Visual Studio 2010... which is my local machine and the server is generated on the host server. Whats wrong?

ERROR

An internal error occurred.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Cryptography.CryptographicException: An internal error occurred.


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

    [CryptographicException: An internal error occurred.
    ]
       System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) +33
       System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) +0
       System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags) +237
       System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password) +80
       DataFirstWebWebService.CLinkTransaction.BuildOrderService() in C:\Users\Chris\Documents\Visual Studio 2010\Projects\DataFirstWebWebService\DataFirstWebWebService\CLinkTransaction.cs:120
       DataFirstWebWebService.CLinkTransaction.ChargeCreditCard(String cardNumber, String expMonth, String expYear, String ccv, Decimal chargeTotal, Billing billingInfo, CLinkTransResponse transResponse) in C:\Users\Chris\Documents\Visual Studio 2010\Projects\DataFirstWebWebService\DataFirstWebWebService\CLinkTransaction.cs:29
       DataFirstWebWebService._default.Button1_Click(Object sender, EventArgs e) in C:\Users\Chris\Documents\Visual Studio 2010\Projects\DataFirstWebWebService\DataFirstWebWebService\default.aspx.cs:38
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

来源:https://stackoverflow.com/questions/7147183/firstdata-webservice-giving-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!