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


  • This question, How do I resolve the error message:

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

    may not be appropriate in this forum, but I get that message after creating the application in VBEE via "Publish" to create an install program.

    I find other threads mentioning this error message, all messages like this appear under various circumstances. But the closest may be "class not registered."

    Perhaps, then, someone can help in how to examine this message for interpretation.

    The CLSID is 4877276c-a727-486d-b201-f096035ca4df. How do I look that up? How would I de-refercence it, to find what object/class/file it represents?



    Thursday, September 14, 2006 5:40 PM

All replies

  • did you ever get a response to your issue or figure out how to de-reference and find what was causing the error?
    Monday, September 10, 2007 2:37 PM
  • Hi All,

    I am also facing same problem but on Vista system.

    I create one application in orcas and try to run on vista x86 bit machine, but i am getting error "Retrieving the COM class factory for component with CLSID {7A42EA29-A2B7-40C4-B091-F6F024AA89BE} failed due to the following error: 80040154." when trying to create object of RTCClientClass.

    I search a lot on net and try one suggestion posted on one forum, which tell me to change Build Platform Target type to x86 from Any CPU, but it doesn't help instead of that i have to spend more time to solve error occure after doing that. Error is "Cannot build a platform-specific XAML Browser Application. If HostInBrowser property is set to 'True', either do not set the PlatformTarget property or set it to 'AnyCpu'."

    For your reference i would like to say that i am using ,NET 3.5 Beta version. and creating Web application. I am not getting such error on Any other Windows Server 2003 sp2, and Windows XP systems, only in Vista system which is x86 bit machine and Business Edition machine.

    And one more thing about same Vista machine, other Browser application runs on it successfult only one application which creates object of RTCClient is not running. I am getting error on line RTCClient rAusio=new RTCClientClass()

    Any one know answer of this two questions please help me, because it is very important for me to run my browser application on vista machines.


    Thursday, September 13, 2007 1:17 PM
  • hello nisarg, i also have the same problem, i have vista ultimate which is x86 bit machine. i have app and it creates the same problem, but when i run it inside virtual pc that is also a vista, it runs fine. i think this problem start after a update from microsoft. i also try regedit and nothing.

    this is my error details:

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {0D43FE01-F093-11CF-8940-00A0C9054228} failed due to the following error: 80040154.
       at Fillipe.frmNewLook.frmMain_Load(Object sender, EventArgs e) in C:\Documents and Settings\Janfelipe\My Documents\FillipeAVETE\Fillipe\frmNewLook.vb:line 16
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
        Assembly Version:
        Win32 Version:
        CodeBase: file:///C:/_1programs/FillipeAVETE/Fillipe/bin/Debug/Fillipe.exe
        Assembly Version:
        Win32 Version: 8.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/
        Assembly Version:
        Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/
        Assembly Version:
        Win32 Version:
        CodeBase: file:///C:/_1programs/FillipeAVETE/Fillipe/bin/Debug/Interop.Scripting.DLL

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging

    For example:

        <system.windows.forms jitDebugging="true" />

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Sunday, September 16, 2007 11:28 PM
  • I also have the same problem i'm using the RTCClinet on vista and visual studio 2005. my solution is working fine on xp and windows server 2003,


    Any one can help please.


    Friday, May 30, 2008 1:39 PM
  • Hi all,

    I found solution of this problem.
    i follow instructions and for me, now RTC is working fine on vista system

    please visit http://laurent.etiemble.free.fr/dotclear/index.php?2006/11/28/99-using-microsoft-rtc-api-under-windows-vista
    to start RTC on Vista or Windows server 2008 systems.

    One thing to remember that this solution is applicable to only Windows application. it wont work for web application at all.

    Let me know this thing worked for you guise or not

    Monday, August 04, 2008 5:13 AM
  • I found that I was able to resolve this issue by recreating the Runtime Callable Wrapper for my COM .dll (Interop.<COM .dll name>.dll).  I used the Visual Studio 2005 IDE to do this by removing the reference to my COM .dll and adding it again, but I believe you can also use the TblImp.exe command line utility.  After I recreated the RCW I moved it to the bin directory for my site on the web server.

    Monday, November 17, 2008 4:09 PM
  • Me also. Getting the same error.

    I tried with Interop.WAILib.dll which gives error . I think that error is due to not registering the  class. I don't know  how to register in the windows registery

    Thursday, August 09, 2012 8:49 AM