Web services FirstData Web服务提供错误

Web services FirstData Web服务提供错误,web-services,asp.net-mvc-3,payment-gateway,firstdata,Web Services,Asp.net Mvc 3,Payment Gateway,Firstdata,我的第一个数据web服务代码在本地计算机上运行良好。下面是Patricker在stackoverflow的回答。问题是,当我将其部署到服务器上时,会出现错误 我是否缺少任何WebService DLL或依赖项,因为我在使用用于上载的构建部署包使用VS2010创建的可部署文件中看不到任何内容 我注意到了错误中的一点。路径是C:\Users\Chris\Documents\Visual Studio 2010。。。这是我的本地计算机,服务器是在主机服务器上生成的。怎么了 错误 在尝试加载p12文件时

我的第一个数据web服务代码在本地计算机上运行良好。下面是Patricker在stackoverflow的回答。问题是,当我将其部署到服务器上时,会出现错误

我是否缺少任何WebService DLL或依赖项,因为我在使用用于上载的构建部署包使用VS2010创建的可部署文件中看不到任何内容

我注意到了错误中的一点。路径是C:\Users\Chris\Documents\Visual Studio 2010。。。这是我的本地计算机,服务器是在主机服务器上生成的。怎么了

错误


在尝试加载p12文件时引发异常。注意“System.Security.Cryptography.X509Certificates.X509Certificate..String fileName,String password”。请首先尝试对P12文件执行System.IO.File.Exists检查,以确保其存在。另一种可能是您更新了P12文件的路径或打开该文件的密码,但不是相反。所以它试图打开一个不匹配的p12文件/密码组合。@patricker,如果问题是密码,那么它不应该首先在本地计算机上工作。我检查文件是否存在。@patricker,试图找到解决方案。您的Web服务代码中有一个问题,您在哪里提到信用卡类型。因为我不知道信用卡用户在付什么。任何帮助。您不需要指定类型。FDGG自动计算出,如果它以4开始,然后是visa卡,然后是万事达卡,等等。。。
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