Microsoft KB Archive/821316

= BUG: File Association Is Lost When You Remove Visual Studio .NET =

Article ID: 821316

Article Last Modified on 8/26/2005

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Academic Edition

-



Notice


SYMPTOMS
When you install Microsoft Visual Studio .NET 2002 and Microsoft Visual Studio .NET 2003 on the same computer, and then you try to remove one of the installed programs, the file associations are lost for Visual Studio .NET-related files. When you try to open .cpp files, .h files, .cs files, .vb files, .sln files, and other Visual Studio .NET-related files, Microsoft Development Environment (MSDEV) cannot start automatically.



CAUSE
The removal process deletes the registry entries that associate the file extensions for Visual Studio .NET.



RESOLUTION
Repair the version of Visual Studio .NET that you plan to keep. For example, when you remove Visual Studio .NET 2003, repair Visual Studio .NET 2002. Similarly, when you remove Visual Studio .NET 2002, repair Visual Studio .NET 2003.

To repair the version of Visual Studio .NET, follow these steps:
 * 1) In Control Panel, and then click Add or Remove Programs.
 * 2) Click Change or Remove Programs.
 * 3) Under Currently installed programs, click your version of Microsoft Visual Studio .NET, and then click Change/Remove.
 * 4) In the Visual Studio .NET Setup wizard, click Visual Studio .NET.
 * 5) In the Setup - Maintenance Page wizard, click Repair/Reinstall.
 * 6) Follow the instructions to complete the repair.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to Reproduce the Behavior
 Install Visual Studio .NET 2002 Enterprise Architect and Visual Studio .NET 2003 Enterprise Architect on the same computer. In Visual Studio .NET, create a new Microsoft Visual C# .NET Windows Application project. To do so, follow these steps:  Start Visual Studio .NET. On the File menu, point to New, and then click Project. Under the Project Types section, click Visual C# Projects. Under the Templates section, click Windows Application, and then click OK.</li></ol> </li> In Contol Panel, click Add or Remove Programs.</li> Click Change or Remove Programs.</li> Under Currently installed programs, click Microsoft Visual Studio .NET Enterprise Architect 2003 - English, and then click Change/Remove.</li> In the Visual Studio .NET Setup Wizard, click Visual Studio .NET.</li> In the Microsoft Visual Studio .NET Enterprise Architect Setup - Maintenance Page Wizard, click Uninstall Microsoft Visual Studio .NET Enterprise Architect.</li> Click OK to remove the program.</li> Follow the instructions to complete the Setup.</li> Start Microsoft Windows Explorer, and then locate a .cs file. When you double-click the .cs file, the file will not open in Visual Studio .NET automatically because the file has lost its file association.</li></ol>

Keywords: kbbug kbregistry kbide kbsetup kbpending kbrepair kbideproject kbvs2002sp1sweep KB821316

-

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

© Microsoft Corporation. All rights reserved.