locked
Retrieving the COM class factory for component with CLSID {CD2958E4-CB20-11D2-856B-00104BD25F91} failed due to the following error: 80040154 Class not registered RRS feed

  • Question

  • User315403214 posted

    I have written a windows service with a 3rd party component referenced. 

    I have tried to find the CLSID and it's no where to be found in the registry. What am I missing? These .dll can't be registered. I get the ".dll was loaded but the entry-point DLLRegisterServer was not found. Make Sure that  XXXX.dll is valid DLL or OCX file and then try again".

    Error:

    Retrieving the COM class factory for component with CLSID {CD2958E4-CB20-11D2-856B-00104BD25F91} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    Wednesday, September 19, 2018 3:55 PM

All replies

  • User-271186128 posted

    Hi griff303,

    Retrieving the COM class factory for component with CLSID {CD2958E4-CB20-11D2-856B-00104BD25F91} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    Please refer to the following thread with the similar problem, and try to use the solutions:

    Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

    Class not registered Error

    Error: 80040154 Class not registered

    Best regards,
    Dillion

    Thursday, September 20, 2018 2:11 AM
  • User315403214 posted

    I've seen all those and have my setup and build properties set to x86. I can't find that CLSID anywhere in the register. So I'm unsure of why I am still getting this error.

    Thursday, September 20, 2018 3:09 PM
  • User475983607 posted

    I have tried to find the CLSID and it's no where to be found in the registry. What am I missing? These .dll can't be registered. I get the ".dll was loaded but the entry-point DLLRegisterServer was not found. Make Sure that  XXXX.dll is valid DLL or OCX file and then try again".

    Run the command prompt as an administrator; right click the command prompt and select "Run as Administrator".  That should allow you to register the dll using regsvr32.exe.

    Thursday, September 20, 2018 3:13 PM
  • User315403214 posted

    I always run in administrator mode. I get the "The module "C:\..... was loaded but the entry-point DLLRegisterServer was not found" error.

    Friday, September 21, 2018 1:11 PM
  • User475983607 posted

    I always run in administrator mode. I get the "The module "C:\..... was loaded but the entry-point DLLRegisterServer was not found" error.

    IIRC, I got the same error when trying to register a dll when not running the command prompt as an admin or perhaps you need to run the regsvc32.exe 32 bit version located in %systemroot%\SysWoW64\regsvr32.exe. 

    If that does not work,I assume the DLL is not a ActiveX DLL and cannot be registered using regsvc32.exe and you should contact the DLL owner for assistance.

    Friday, September 21, 2018 2:04 PM