Introduction
The Microsoft .NET Framework Repair Tool detects frequently occurring issues that affect Microsoft .NET Framework setup or updates. The tool tries to resolve those issues by applying known fixes or by repairing corrupted installations of the supported .NET Framework versions. The tool has an easy-to-use, wizard-based user interface (UI). It also supports command line usage together with more advanced options.
Microsoft has released the following updated version of the Microsoft .NET Framework Repair Tool.Latest version
Last updated: 08/01/2024
Release: v1.5 Version: 4.8.4739.15 Supported languages: English (United States)Changes that are included in release v1.5
-
The tool now supports Microsoft .NET Framework 4.8, 4.7.2, 4.7.1, 4.7, and 4.6.2. Therefore, fixing and repairing are also applicable to these products.
-
Addresses an elevation of privilege vulnerability detailed in CVE 2024-38081.
-
Removes out of support operating system and .NET Framework versions.
The tool supports all the features from the previous release as-is.
Notes
-
The .NET Framework Repair Tool is available in English only.
-
The supported platforms and .NET Framework versions are listed under "Affected configurations."
Download information
The latest version of the .NET Framework Repair Tool is available for download from the following Microsoft Download Center website:
Supported command line options for this tool
Standard option |
Description |
Usage |
---|---|---|
/? OR /help |
Displays help information. |
NetFxRepairTool.exe /? |
/q OR /quiet |
Quiet mode. No user interaction is required and the tool tries all fixes/repairs and saves the log file. Options "/q" and "/p" are mutually exclusive. |
NetFxRepairTool.exe /q |
/p OR /passive |
Unattended mode. Only the progress bar is displayed. Options "/q" and "/p" are mutually exclusive. |
NetFxRepairTool.exe /p |
/a OR /addsource |
Offline repair mode. Setup redistributable files that are required for repair are copied from a network share or folder path that is specified by the "/addsource" flag. This should generally be used when the tool is functioning in a disconnected or locked down environment. |
NetFxRepairTool.exe /a <folder path> Example: NetFxRepairTool.exe /a "\\SharePc\ShareFolder" |
/r OR /repair |
Repair operation can be optionally scoped to target a set of specified product baselines. If this option is not specified, the tool will try to repair all supported .NET Framework versions installed. The "/repair" option can also be used together with "None" value to just apply fixes and skip running repair for any product baseline. When this option is used together with "None" value, then the "/addsource" option should not be specified. This option is applicable only in Quiet and Passive modes. |
NetFxRepairTool.exe /r <version1>; <version2> Supported version values: .net35, .net4, .net45, .net451, .net452, .net46, .net461, .net462, .net471, .net472, .net48, none Examples: NetFxRepairTool.exe /q /r .net4 NetFxRepairTool.exe /q /r .net35;.net45 |
/l OR /logs |
Optionally, sets the desired folder path for the logs file cabinet (FixDotNet*.cab) generated by the tool. Default (that is not specifying this option) location of the CAB file is current user's desktop folder. |
NetFxRepairTool.exe /l <folder path> Example: NetFxRepairTool.exe /l "%temp%" |
/c OR /collectonly |
Log Collection Only mode. This mode will allow for collection of logs relevant to .NET Framework setup, which is useful for troubleshooting. Repair or any fix operations are not performed when this option is specified. This option is only applicable in Quiet and Passive modes and will suppress all other operations. |
NetFxRepairTool.exe /q /c OR NetFxRepairTool.exe /p /c |
/n OR /noceipconsent |
Opt out of sending feedback information to Microsoft. Default (not specifying the flag) assumes that the user has opted in to send usage data to Microsoft. This option is applicable only in Quiet and Passive modes. |
NetFxRepairTool.exe /q /n OR NetFxRepairTool.exe /p /n |
More information
Repair Tool options
The .NET Framework Repair Tool follows a four-step process:
-
Tries to troubleshoot setup issues
-
Applies the fixes (requires user consent)
-
Tries to repair all installed versions of .NET Framework
-
Collects logs (requires user consent)
The tool may make one or more changes to the installed version of .NET Framework. For example, it may correct the state of Windows Installer on the computer, reset the discretionary access control lists (DACLs) on certain folders, or resolve issues that are related to an invalid or corrupted update registration.
Offline support
The .NET Framework Repair Tool provides an option to repair the versions of .NET Framework that are installed on the computer (step 3 of the process in the "Repair Tool options" section). The tool requires the redistributable files of those versions to be available at the time of repair. By default, the tool downloads these packages from the internet during the repair. If your computer has limited or no internet connectivity, you should use Offline mode for the repair. To do this, specify the /addsource option together with the path of the folder that contains the redistributable files, as in the following example:
NetfxRepairTool.exe /addsource \\SHARE_PC\SHARE_FOLDER If the Repair Tool does not find the required redistributable in the specified folder, it will try to download the file from the internet. The Repair Tool cannot do this if the required file cannot be downloaded. The following table lists the .NET Framework redistributable files.
Version and profile |
Architecture |
Installer file name |
URL |
---|---|---|---|
.NET Framework 4.8 |
x86, x64 |
NDP48-x86-x64-AllOS-ENU.exe |
|
.NET Framework 4.7.2 |
x86, x64 |
NDP472-KB4054530-x86-x64-AllOS-ENU.exe |
|
.NET Framework 4.7.1 |
x86, x64 |
NDP471-KB4033342-x86-x64-AllOS-ENU.exe |
|
.NET Framework 4.7 |
x86, x64 |
NDP47-KB3186497-x86-x64-AllOS-ENU.exe |
|
.NET Framework 4.6.2 |
x86, x64 |
NDP462-KB3151800-x86-x64-AllOS-ENU.exe |
|
.NET Framework 3.5 SP1, .NET Framework 3.0 SP2, .NET Framework 2.0 SP2 (if .NET Framework 3.0 and 3.5 are installed) |
x86, x64 |
dotnetfx35.exe |
Quiet mode and Passive mode
All the functions of the Repair Tool can be automated by running the tool in Quiet or Passive mode. This has the benefit of requiring no user interaction for the tool to run. This is especially helpful in large deployments in which system administrators can configure the tool (through the command line) and also collect logs in specified locations.
Data collection
The .NET Framework Repair Tool collects information about tool usage in addition to collecting diagnostic installation data. The usage information is used to improve the quality of the .NET Framework Repair Tool, and the installation data is used to improve .NET Framework setup. This information is not used for marketing or sold to third parties. For more information, read the Microsoft .NET Framework Repair Tool Privacy Statement.
For more information about how to download Microsoft support files, see the following article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
Note The data collection feature creates a compressed cab file of the .NET Framework installation logs. After the tool processes the logs, a .cab file that is named "FixDotNet*.cab" or something similar is created and saved to the current user’s desktop (if it is running in UI mode) or to a specified location. When you click Finish in the wizard, the tool sends the .cab file that contains the logs to Microsoft. The FixDotNet*.cab file stays on your desktop (or specified location) regardless of whether you decide to send the data to Microsoft. If you use the "/q" option, we recommended that you also use the "/logs" option to save the logs to some specific location or to a network share for supporting enterprise scenarios.Version history
Release v1.5
Supported Languages: English (United States)
Adds support for .NET Framework 4.6.2 through .NET Framework 4.8.Release v1.4
Supported Languages: English (United States)
Adds support for .NET Framework 4.6.2 through .NET Framework 4.8.Release v1.3
Supported Languages: English (United States)
Extends support for .NET Framework 4.5.2, .NET Framework 4.6, and .NET Framework 4.6.1.Release v1.2
Supported Languages: English (United States)
Quiet mode and Passive mode support through command line is added for the tool. Now, the tool does not require you to run in UI mode only. Therefore, the task can be automated. The tool now supports the .NET Framework 4.5 and the .NET Framework 4.5.1. Therefore, fixing and repairing are also applicable for these products. A new, optional command line switch is added to enable the repair of specific .NET Framework versions to override the repair of other installed versions at the same time. The Repair Tool-generated log file can now be optionally saved in a user-specified location by using a command line option. This new option overrides the default location, which is the current user’s desktop in UI mode and %temp% folder in Quiet or Passive mode. A new option lets you run the Repair Tool in Log Collection Only mode without applying any fixes or repairs. The option provides the flexibility to collect and investigate logs before you apply actual fixes. New, optional support is added to let you opt out of any data collection in Quiet or Passive mode. Release: v1.1 Supported Languages: English (United States) Release v1.1 extends support to the .NET Framework 3.5 SP1 (this includes the .NET Framework 3.0 SP2 and the .NET Framework 2.0 SP2). Release v1.1 also adds offline support for computers that have limited or no internet connectivity. Release: v1.0 Supported Languages: English (United States) Release v1.0 is the first version of the tool that had support for .NET Framework 4 and its updates.Affected configurations
You can use the .NET Framework Repair Tool to correct setup problems for the following configurations:
-
.NET Framework 4.8 on the following operating systems:
-
Windows Server 2008 R2 Service Pack 1 (SP1)
-
-
.NET Framework 4.7.2 on the following operating systems:
-
Windows Server 2008 R2 Service Pack 1 (SP1)
-
-
.NET Framework 4.7.1 on the following operating systems:
-
Windows Server 2008 R2 Service Pack 1 (SP1)
-
-
.NET Framework 4.6.1 on the following operating systems:
-
Windows Server 2008 R2 Service Pack 1 (SP1)
-
-
.NET Framework 4.6.2 on the following operating systems:
-
Windows Server 2008 Service Pack 2 (SP2)
-
Windows Server 2008 R2 Service Pack 1 (SP1)
-
-
.NET Framework 3.5 SP1 on the following operating systems:
-
Windows Server 2008 Service Pack 2 (SP2)
-