Comment:
Hi,
COM dll is 32 bit and my solution is 64 bit. Could you please let me know is it an issue? If Yes,please let me know how to fix it.
The easiest way to do this would be to make your application 32 bit.
An alternative if you had access to the source code would be to recompile into a 64 bit version
Comment:
Hello,
I am getting
System.Runtime.InteropServices.COMException:'Retrieving the COM class factory for
component with CLSID {C5CBD7B2-490C-45F5-8C40-B8C3D108E6D7} failed due to the following error:80040154 Class not registered (Exception from HRESULT:0x80040154(REGDB_E_CLASSNOTREG)}
The registration of COM components basically means that references are added to a list within the Windows
Registry.
There are separate lists for 32 bit and 64 bit COM objects. When you install and register a 32 bit DLL it will go into the 32 bit list.
When a 64 bit application looks for COM objects, it will look in the 64 bit list.
Hence... the error.
As previously stated, the best choices are to either use a 64 bit version of the DLL or make your application 32 bit.
There are some hacks out there on copying the registry entries... which may be fine locally but can be a nightmare if this application has to be deployed on several machines