tags:

views:

3969

answers:

4

What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our in-house COM components.

From what I understand, 0x80080005 refers to "permission denied", but where do I go to check/change the permissions? Or am I completely wrong here, and the error is coming from the component itself, and not out of Windows COM subsystem?

A: 

Your question may be too vague to receive a meaningful answer. Are you receiving this error at compile-time? Run-time? What COM component is causing the error? If error is at run-time, are you running as a non-admin user on XP or Vista?

Judah Himango
A: 

0x80080005 is "Server Execution Failed", according to ERRLOOK.EXE. WinError.h lists this as CO_E_SERVER_EXEC_FAILURE. Not "Access Denied".

Roger Lipscombe
D'oh. Thanks! Does this mean that the server failed, or that COM failed to instantiate the server?
+2  A: 

Seems to be a rather generic error relating to starting up the COM server. Possible issues include timeouts, logon failures (check the Q about CO_E_SERVER_EXEC_FAILURE), or security permissions, or (evidently) a VS2008 ATL bug. Hitting an error in CreateInstance would do the trick as well, I think.

I'd start by checking Event Log for anything interesting.

Mark Brackett
I just dug up server's source code. It is C++/ATL. Shudder. It appears to be easier to work around this stuff then to get to the bottom of it.
Hi. Your post is very interesting. However, the links in it seem to have a syntax problem, and the secfac.htm seems to have moved to http://alt.pluralsight.com/wiki/default.aspx/Keith/ComSecurityFaqEx2.html
chiccodoro
A: 

One thing that you can look at is the DCOM security configuration. It is controlled by the dcomcnfg utility. There are helpful tutorial videos on the web to explain how to use it. There is also a thread on the ASP.NET forum that discusses how to use dcomcnfg.

Eric Ness