Failed to retrieve components whose CLSID is {} in the com class factory because of the following error: 80040154
Failed to retrieve components whose CLSID is {XXXX-XXXX-XXX-XXXXX-XXX} in COM class factory because of the following error: 80040154.
Most of the above problems are caused by the failure to register the COM control on the target machine.
Solution:
The name of the referenced control in resvr32. net
If the registration is successful, the problem does not occur.
However, if the control is registered successfully in an x64-bit system, the error is prompted because most third-party COM controls only support 32-bit systems,
In vs, find the project where the reference control is located --> properties --> Generate --> General ---> Target Platform ---> select x86.
Http://blog.csdn.net/Fibona/archive/2010/10/18/5949180.aspx
Original article: