Issue:
When I was trying to run the application that used the reference, error occurred:
“System.Runtime.InteropServices.COMException (0x80040154). Retrieving the COM class factory for component xxxx failed due to the following error: 80040154”
1. The COM component needs to be registered on his laptop. Start + Run, regsvr32 c:\wavetracker\componentname.dll
DID NOT HELP, another error:
The module XXX was loaded but entry-point DllRegisterServer was not found.
Make sure that XXX is a valid DLL or OCX file and then try again.
2. http://technet.microsoft.com/en-us/sysinternals/0e18b180-9b7a-4c49-8120-c47c5a693683.aspx
download:
– Process Explorer (a GUI-based version of ListDLLs from sysinternals)
– Process Monitor (fully replaces “RegMon”(another suite from sysinternals) on windows vista )
3. Usually the root of the problem is difficult to identify.
In my case, the problem was the wrong usage of classes and functions of the library on hand.
Hence, sometimes when you use library functions/classes in the wrong way it might give this error.
So, this error NOT ALWAYS means the lack of DLL or its registration!!!