Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Subsequent attempts to activate a COM object by using the ProgID fail after an intermittent error occurs in Windows Server 2003


View products that this article applies to.

Symptoms

Consider the following scenario:
  • In Microsoft Windows Server 2003, you activate a Microsoft Component Object Model (COM) object by using the ProgID.
  • A process writes to the registry. Therefore, the object cache is invalidated.
  • You call the CLSIDFromProgID function to obtain the ClassID for the COM object. Because the COM object is not in the invalidated object cache, the registry is searched.
  • An intermittent error occurs when you obtain the ClassID from the registry. For example, a registry API call fails.
In this scenario, the CLSIDFromProgID function returns CO_E_CLASSSTRING. Subsequent attempts to activate the COM object by using the ProgID fail.

↑ Back to the top


Cause

This issue occurs because the COM object is stored in the object cache with an unregistered ProgID.

This problem may appear to be intermittent. A process may write to the registry again and invalidate the object cache. For example, a user may log on to the computer. If no problems occur when obtaining the ClassID from the registry, COM activation for the object succeeds.

↑ Back to the top


Resolution

Service pack information

To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
889100 How to obtain the latest service pack for Windows Server 2003

How to obtain the hotfix

This issue is fixed in the Windows Server 2003 Post-Service Pack 1 COM+ 1.5 Hotfix Package 9.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Windows Server 2003 Service Pack 2.

↑ Back to the top


More information

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: KB920865, kbwinserv2003presp2fix, kbqfe, kbfix, kbwinserv2003sp2fix

↑ Back to the top

Article Info
Article ID : 920865
Revision : 3
Created on : 10/9/2011
Published on : 10/9/2011
Exists online : False
Views : 514