BUG: Visual Studio .NET IDE does not start if a COM+ package is created for MSXML 3.0 (322174)
The information in this article applies to:
- Microsoft Visual Studio .NET (2002), Professional Edition
This article was previously published under Q322174 SYMPTOMS If you have created a COM+ package for Microsoft XML Parser
3.0 (MSXML 3.0), the Visual Studio .NET integrated development environment
(IDE) does not start, and you receive the following error message:
The application cannot start. When you click Help in the error message dialog box, you are prompted to reinstall
Visual Studio .NET. NOTE: This problem can occur in any application that is using MSXML
3.0 and that calls CoCreateInstance with CLSCTX_INPROC_SERVER. Note that you may receive a different error message with a
different application. CAUSE Registering MSXML or any other COM component with COM+
intercepts all CoCreateInstance calls to that component. As a result, CoCreateInstance must be called with a CLSCTX_SERVER or a CLSCTX_ALL flag.
Visual Studio .NET calls CoCreateInstance on MSXML 3.0 during startup. Visual Studio .NET makes a call with
CLSCTX_INPROC_SERVER, which is eventually unsuccessful because MSXML 3.0 has been
registered with COM+ and expects CLSCTX_SERVER or CLSCTX_ALL. RESOLUTION To restart Visual Studio .NET:
- Delete the COM+ package that you created for MSXML3.0.
- Unregister Msxml3.dll. To do this, run the following from a
command prompt:
c:\>regsvr32 /u c:\winnt\system32\msxml3.dll
- Reregister Msxml3.dll. To do this, run the following from a
command prompt:
c:\>regsvr32 c:\winnt\system32\msxml3.dll
- Start Visual Studio .NET to confirm success.
If the error is faced in your application (**SP: ?), change
your code to use CoCreateInstance with CLSCTX_SERVER or the CLSCTX_ALL switch. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCESFor additional information,
click the article number below to view the article in the Microsoft Knowledge
Base: 306905 PRB: Visual Studio .NET IDE Does Not Open on Startup
Modification Type: | Minor | Last Reviewed: | 9/15/2005 |
---|
Keywords: | kbvs2002sp1sweep kbbug kbnofix KB322174 |
---|
|