Repair an existing installation of .NET Framework

This article describes how to repair the existing installation of Microsoft .NET Framework if you upgrade your operating system.

Original product version:   Microsoft .NET Framework
Original KB number:   306160

Summary

You may need to repair your installation of the .NET Framework if you upgrade your operating system or if the current installation of the .NET Framework becomes corrupted.

Steps to repair the .NET Framework installation

  1. Obtain the original installation source. For example, if you installed the .NET Framework from a CD-ROM or from a digital video disc (DVD), insert that disk. If you downloaded the .NET Framework, download the .NET Framework again. Make sure that you select save to disk. If you installed the .NET Framework from a network share, reconnect to that share.

  2. Select Start, select Run, type the following command, and then select OK:

    N:\dotnetframework\dotnetfx.exe /t:c:\temp /c:"msiexec.exe /i c:\temp\netfx.msi REINSTALL=ALL ReinstallMODE=vomus"
    

    Note

    • Replace N:\ in this command syntax with the original installation path.
    • If you don't have a C:\temp folder on your computer, create one before you run this command.

The Windows Installer will verify and repair the .NET Framework installation.