Microsoft Knowledge Base Email Alertz

All versions of the MSXML parser (2.0, 2.5, 2.6, 3.0, 4.0, 4.0 Service Pack 1 (SP1) and future releases) share the same COM TypeLib. When you install MSXML 4.0 (SP1 or later), the TypeLib version information for the MSXML interfaces (such as...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 322129 - Last Review: September 29, 2002 - Revision: 1.1

PRB: MSXML TypeLib Version Information in Registry Does Not Change After You Remove the 4.0 Parser

This article was previously published under Q322129

SYMPTOMS

All versions of the MSXML parser (2.0, 2.5, 2.6, 3.0, 4.0, 4.0 Service Pack 1 (SP1) and future releases) share the same COM TypeLib. When you install MSXML 4.0 (SP1 or later), the TypeLib version information for the MSXML interfaces (such as IXMLDOMDocument, IXMLDOMNode, IXMLDOMNodeList, IXMLDOMNamedNodeMap) in the registry are updated to 4.0 (or the newer DLL).

The following is the registry information for IXMLDOMDocument interface from a computer that has MSXML 3.0 installed:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}]
@="IXMLDOMDocument"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\TypeLib]
@="{F5078F18-C551-11D3-89B9-0000F81FE221}"
"Version"="3.0"
				
After you install MSXML 4.0, the version of the TypeLib is changed to 4.0 as follows:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}]
@="IXMLDOMDocument"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\TypeLib]
@="{F5078F18-C551-11D3-89B9-0000F81FE221}"
"Version"="4.0"
				
At the same time, a new key that is related to MSXML 4.0 is added under the TypeLib of the MSXML DLL as follows:
Windows Registry Editor Version 5.00

...

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\3.0]
@="Microsoft XML, v3.0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\3.0\0]

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\3.0\0\win32]
@="C:\\WINDOWS\\system32\\msxml3.dll"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\3.0\FLAGS]
@="0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\3.0\HELPDIR]
@="C:\\WINDOWS\\system32"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0]
@="Microsoft XML, v4.0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0\0]

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0\0\win32]
@="C:\\WINDOWS\\system32\\msxml4.dll"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0\FLAGS]
@="0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0\HELPDIR]
@="C:\\WINDOWS\\system32"
				
When you remove MSXML 4.0, following key is removed:
[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\4.0]
				
However, the TypeLib version information under each interface is not changed back to an earlier version. For example, after you remove MSXML 4.0, the version of the TypeLib of IXMLDOMDocument interface is 4.0 instead of 3.0.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}]
@="IXMLDOMDocument"

...

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\TypeLib]
@="{F5078F18-C551-11D3-89B9-0000F81FE221}"
"Version"="4.0"
				
This may cause problems in applications that use the MSXML TypeLib to do automation, or late binding, or may cause problems in any application that requires runtime interface type discovery through a TypeLib.

RESOLUTION

To resolve this problem, revert the TypeLib version information to the correct version. To do this, reinstall or reregister any version of the MSXML parser on the computer. For example, if you reinstall MSXML 3.0, the registry information changes back to 3.0.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}]
@="IXMLDOMDocument"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{2933BF81-7B36-11D2-B20E-00C04F983E60}\TypeLib]
@="{F5078F18-C551-11D3-89B9-0000F81FE221}"
"Version"="3.0"
				

STATUS

This behavior is by design.

APPLIES TO
  • Microsoft XML Parser 2.5
  • Microsoft XML Parser 2.6
  • Microsoft XML Parser 3.0
  • Microsoft XML Parser 3.0 Service Pack 1
  • Microsoft XML Parser 3.0 Service Pack 2
  • Microsoft XML Core Services 4.0
  • Microsoft XML Core Services 4.0 Service Pack 1
Keywords: 
kbprb KB322129
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate