Author Topic: Error 0x80040154 Retrieving COM class factory for component with CLSID failed  (Read 1495 times)


  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
You might notice the following error often you do mix with COM DLL in C#.

Retrieving the COM class factory for component with CLSID {} failed due to the following error: 0x80040154.

It is easy to fix once you understand how it works. Check the following steps. It will solve your problem 99%.

1. Register you COM dll with RegSvr32
2. Register your assembly (built with tlbimp)
3. Make sure your C# test application is using x86 and not "ANY CPU". If you do not find x86, create a new configuration with X86

Like us at:


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1