Issue:
Retrieving the COM class factory for component withCLSID {xxxx} failed due to the following error: 80040154Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Solutions:
1.registered the DLL using the regsvr32 command.
The easiest resolution to find a version ofqedit.dll from a version of Windows that does include it, such as Windows XP,Vista, 7 or 8 (basically, any non-server OS).Copy the qedit.dll file to theC:\Windows\system32 directory of your server OS.
32-bit (x86): C:\Windows\system32
64-bit (x64): C:\Windows\SysWOW64
Run the following command at the command promptas administrator: regsvr32 C:\Windows\system32\qedit.dll.
2. If above method does not solve your issue, please use thismethod.
In VS - project properties - in the Build tab - platform target=X86
3. If above methods does not solve your issue still. You canun-install related dll/exe and then re-install it again.
That’s it! Your program should now be able to load thecomponent and function as expected.