none
Error in COM class factory RRS feed

  • Question

  •  

    Hi Friends,

    I am getting an error in outlook 2010 64bit addin. I am pasting the error below.

    Retrieving the COM class factory for component with CLSID {741BEEFD-AEC0-4AFF-84AF-4F61D15F5526} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    Redemption.SafeMailItem safeMailItem = new Redemption.SafeMailItem();

    In this line i'm gettig the error. I think this is the error of redemption.dll. 

    Thursday, February 9, 2012 5:07 PM

Answers

  • in setup project, right click your dll in dependency folder, choose properties and there find Register entry - change it to register in COM
    • Marked as answer by Bobbin Paulose Friday, February 10, 2012 10:20 AM
    Friday, February 10, 2012 9:25 AM

All replies

  • Are you referencing the x64 version of Redemption? Is it registered on the target machine or are you using an instance of RedemptionLoader? If you're using the loader are you checking in debug mode to make sure you're accessing the Redemption.dll module at the correct filepath?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Bobbin Paulose" <=?utf-8?B?Qm9iYmluIFBhdWxvc2U=?=> wrote in message news:79c9ab69-624d-4747-a297-5533ee0f79a0...
     

    Hi Friends,

    I am getting an error in outlook 2010 64bit addin. I am pasting the error below.

    Retrieving the COM class factory for component with CLSID {741BEEFD-AEC0-4AFF-84AF-4F61D15F5526} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    Redemption.SafeMailItem safeMailItem = new Redemption.SafeMailItem();

    In this line i'm gettig the error. I think this is the error of redemption.dll. 


    Ken Slovak MVP - Outlook
    Thursday, February 9, 2012 6:07 PM
    Moderator
  • Hi Ken,

    I think the redemption64.dll is not registering properly. When i mannuly register that dll, its working fine. How can i automatically register that dll, while install the setup. Already included the redemption64.dll in the setup file. But i dont know why its not registering.

    Thanks

    Bobbin

    Friday, February 10, 2012 8:38 AM
  • in setup project, right click your dll in dependency folder, choose properties and there find Register entry - change it to register in COM
    • Marked as answer by Bobbin Paulose Friday, February 10, 2012 10:20 AM
    Friday, February 10, 2012 9:25 AM
  • In your setup project mark the Redemption.dll to be self-registering for COM. Redemption will then register itself. Don't use COM registration setting for that, it works better when using self-registering.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Bobbin Paulose" <=?utf-8?B?Qm9iYmluIFBhdWxvc2U=?=> wrote in message news:5b74af80-a436-4233-9dce-5f6fc813e732...

    Hi Ken,

    I think the redemption64.dll is not registering properly. When i mannuly register that dll, its working fine. How can i automatically register that dll, while install the setup. Already included the redemption64.dll in the setup file. But i dont know why its not registering.

    Thanks

    Bobbin


    Ken Slovak MVP - Outlook
    Friday, February 10, 2012 4:16 PM
    Moderator
  • Redemption prefers self-registration rather than the COM registration setting. That's especially the case for customized versions of Redemption.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Autho r: Professional Programming Outlook 2007
     
     
    "DamianD" <=?utf-8?B?RGFtaWFuRA==?=> wrote in message news:5c1bbe35-5f63-4724-89cf-de3b54b35b50...
    in setup project, right click your dll in dependency folder, choose properties and there find Register entry - change it to register in COM

    Ken Slovak MVP - Outlook
    Friday, February 10, 2012 4:16 PM
    Moderator