Throw COMException (0x80040154):

Discussion in 'General troubleshooting' started by acslrocky, Aug 22, 2011.

  1. I want to Integrated paypal's Website Payments Standard in my website,
    in localhost, it's ok, after upload to Winhost, Throw exception.

    CapiCom.dll use to Encrypt the payments info to Paypal site.
    it seems that the CapiCom.dll not registed into windows.

    How to handle this case ?:confused:

    Detail error:
    --------------------------------------------------------------
    Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
    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.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    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:

    [COMException (0x80040154): Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
    ASPDotNetSamples.util.ButtonEncryption.LoadSignerCredential(String signerPfxCertPath, String signerPfxCertPassword) in D:\aspTest\0822-paypal\paypalA\paypala\util\ButtonEncryption.cs:93
    ASPDotNetSamples.util.ButtonEncryption.SignAndEncrypt(String clearText, String sPfxFile, String sPfxPassword, String sPPCertFile) in D:\aspTest\0822-paypal\paypalA\paypala\util\ButtonEncryption.cs:74
    ASPDotNetSamples.services.EWPServices.EncryptButton(String buttonParams, String itemName, String itemAmount) in D:\aspTest\0822-paypal\paypalA\paypala\services\EWPServices.cs:86

    [TransactionException: Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
    ASPDotNetSamples.services.EWPServices.EncryptButton(String buttonParams, String itemName, String itemAmount) in D:\aspTest\0822-paypal\paypalA\paypala\services\EWPServices.cs:91
    ASPDotNetSamples.BuyNow.Page_Load(Object sender, EventArgs e) in D:\aspTest\0822-paypal\paypalA\paypala\BuyNow.aspx.cs:86
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
     
    Last edited by a moderator: Oct 14, 2015

Share This Page