大网数据广告活动
Web服务器与PHP

Repair an Installation of .NET Framework

· 52CE 我爱测

Describes how to repair an installation of .NET Framework after you upgrade your operating system.

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.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 07/07/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。