Edit

Bagikan melalui


Repair an existing installation of .NET Framework

This article describes how to repair an existing installation of Microsoft .NET Framework. You might have to repair this installation after you upgrade your operating system or if the current installation of .NET Framework becomes corrupted.

Applies to: Microsoft .NET Framework

Original KB number: 306160

Repair .NET Framework

The Windows installer verifies and repairs the .NET Framework installation. Follow these steps:

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

  2. Select Start, select Run, enter 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

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