"80004002, E_NOINTERFACE" Error Message When Windows 2000 COM Client Application Requests Creation of COM Object (307597)



The information in this article applies to:

  • Microsoft Windows 2000 Professional

This article was previously published under Q307597

SYMPTOMS

When a COM client application on a Windows 2000-based computer requests the creation of a Component Object Model (COM) object through a local COM server, the following error message is returned to the client:
80004002, E_NOINTERFACE
Note This does not occur if the COM client resides on a Microsoft Windows NT 4.0-based computer.

CAUSE

This behavior occurs because of a difference in functionality between Windows NT 4.0 and Windows 2000.

MORE INFORMATION

On a Windows NT 4.0-based system, if a COM client tries to create a COM object through a local COM server by using a call to the CoCreateInstance, function, and the resulting IClassFactory::CreateInstance method returns "CO_E_SERVER_STOPPING," the COM Service Control Manager (SCM) determines that the server is shutting down and therefore creates a new instance of the local COM server to service the request.

On a Windows 2000-based system, if IClassFactory::CreateInstance returns "CO_E_SERVER_STOPPING," this generates an error, and the "80004002, E_NOINTERFACE" error message is returned to the client. The Windows NT 4.0 functionality helps prevent a race condition that may otherwise occur.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:10/1/2003
Keywords:kberrmsg kbfix kbBug kbprb KB307597