Microsoft KB Archive/920865

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

Article ID: 920865

Article Last Modified on 12/5/2007

-

APPLIES TO


 * Microsoft COM+ 1.5, when used with:
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)

-





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.



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.



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.



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



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

Keywords: kbwinserv2003sp2fix kbfix kbqfe kbpubtypekc kbwinserv2003presp2fix kbbug KB920865

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.