I create a wrapper "Interop.UTILSRVLIB.dll" for a COM component "UtilSrv". From my asp.net code, I call util = new UTILSRVLib.UtilClass(); util.Init();" In the Init() function of UtilSrv, I call CoCreateInstance() to create an instance of another COM component
named "Foo.dll". It returns 0x80004002. I am sure the Foo.dll is registered correctly. I found a article KB229770 from Microsoft. PRB: CoGetClassObject for IClassFactory2 Returns E_NOINTERFACE for Configured Components SYMPTOMS When you call the CoGetClassObject
function for the IClassFactory2 interface on components that are hosted in a COM+ application, the function fails with error 0x80004002 ("No such interface supported" or E_NOINTERFACE). CAUSE This error occurs because the class factory wrapper for configured
components only supports the IClassFactory interface, not the IClassFactory2 interface. The information in this article applies to: Microsoft COM, when used with: the operating system: Microsoft Windows 2000 But my Foo.dll doesn't use implement IClassFactory2
at all. Any idea? Thanks, Ling
I've seen this error happen sometimes when there are security issues that prevent the current context from activating the component... have you tried making the call from an account with greater privileges?
usouthal
Member
5 Points
1 Post
0x80004002("No such Interface supported" error when calling CoCreateInstance() in a COM wrapper
Sep 14, 2004 05:58 PM|LINK
tomasr
Contributor
4290 Points
852 Posts
Re: 0x80004002("No such Interface supported" error when calling CoCreateInstance() in a COM wrapp...
Sep 20, 2004 12:42 PM|LINK
tomasr@mvps.org
asaf meir
Member
14 Points
11 Posts
Re: 0x80004002("No such Interface supported" error when calling CoCreateInstance() in a COM wrapp...
Sep 21, 2009 02:28 PM|LINK
I am facing the same
I am runing classic asp under IIS5 - i know it is old !!!
Anyway - it happens only when 2 concurrent http request make the same "COM visible" .net assembly run the same class.