FIX: Debugger does not work after you remove the .NET Framework

Article translations Article translations
Article ID: 313504 - View products that this article applies to.
This article was previously published under Q313504
Expand all | Collapse all

SYMPTOMS

If more than one version of the .NET Framework Redistributable Package is installed on your computer, and then you remove one version, you may receive the following error message when you try to run a project:
"Error while trying to run project: Unable to start debugging.

Unable to start program 'path.exe name'

The debugger is not properly installed. Run setup to install or repair the debugger."

CAUSE

This problem occurs because the debugger is not left in a working state after you remove a .NET Framework Redistributable Package.

RESOLUTION

To resolve this problem, repair the .NET Framework redistributable installation by typing one of the following at a command prompt:
  • C:\dotnetfx.exe /t:temp /c:"msiexec.exe /fvecms temp\netfx.msi"
  • C:\dotnetfx.exe /t:temp /c:"msiexec.exe /i temp\netfx.msi REINSTALLMODE=ALL ReinstallMODE=vomus"
Note If you download the .NET Framework redistributable from the Microsoft Developer Network (MSDN) Web site, the DotNetFX.exe file is wrapped in Dotnetredist.exe. Type the following at a command prompt to extract the file:
C:\dotnetredist.exe /t:c:\

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in Visual Studio .NET (2003), Visual C++ .NET (2003), Visual Basic .NET (2003), Visual C# .NET (2003), Microsoft Visual J# .NET (2003), and the .NET Framework 1.1.

MORE INFORMATION

The .NET Framework Redistributable Package (DotNetFX.exe) is available as a stand-alone executable file that contains the run time elements of the .NET Framework.

This issue does not occur with the first release of the .NET Framework Redistributable Package unless you do not remove a previously installed Beta version of the software.

This issue can occur when an updated version of the .NET Redistributable Installer becomes available.

REFERENCES

For more information about how to repair the .NET Framework Redistributable Package, click the following article number to view the article in the Microsoft Knowledge Base:
306160 How to repair an existing installation of the .NET Framework SDK
For information about where to obtain the .NET Redistributable Package and about how to distribute .NET applications with this package, see the following MSDN article:
http://msdn.microsoft.com/en-us/library/ms994349.aspx

Properties

Article ID: 313504 - Last Review: January 19, 2006 - Revision: 3.7
APPLIES TO
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
  • Microsoft .NET Framework 1.0
  • Microsoft Visual J# .NET 2003 Standard Edition
Keywords: 
kbvs2005doesnotapply kbvs2005swept kbtshoot kberrmsg kbvs2002sp1sweep kbfix kbbug KB313504

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com