locked
Decrypt Error RRS feed

  • Question

  • Getting this error in one environment: Event Type: Error Event Source: MCommerce.DebitRequest Event Category: None Event ID: 0 Date: 5/10/2011 Time: 4:54:32 PM User: N/A Computer: EOLBLADE1-CS Description: System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password) at Decryption.DecryptText(String EncryptedPIN) at MobileServices.DebitRequest(String TxnId, String MobileNumber, String AccountAlias, String MPIN, String Amount, String ReferenceMerchant, String ReversalFlag, String ConfirmationNumber, String ReasonForReversal) even after I fixed the same error in another environment
    Wednesday, May 11, 2011 12:52 AM

Answers

  • The error message indicates that some files are missed in your environment, make sure the file you passed to "System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)" exists.
    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by eryang Monday, May 23, 2011 4:04 AM
    Friday, May 13, 2011 7:00 AM