BT

InfoQ Homepage News A Easier Way to Repair the .NET Framework

A Easier Way to Repair the .NET Framework

Bookmarks

Having a set of the .NET Frameworks that works correctly is important for all Windows users and developers are no exception.  Through the course of development, it is easy to accidentally overwrite needed files.  In an effort to minimize troubleshooting, Microsoft provides the .NET Framework Repair Tool.  This tool provides the ability to scan a Windows system for errors with any of the .NET Framework packages that are supposed to be installed.

The program may be executed via the command line or through a graphical wizard.  Command line switches are available which allow the tool to be run unattended and to enable proper .NET packages to be located on a network share (versus requiring Internet access).  There is also an option to disable the default behavior of sending a diagnostic log file to Microsoft after the tool has been executed.

The typical operation of the utility takes the following steps:

  1. Scan the machine for the known errors with .NET Framework installations and if found, provide a list to the user for ereview
  2. Take any of the following corrective measures:
    1. Ensuring Windows Installer service is properly operational
    2. Reset discretionary access control lists on system folders
    3. Verify and correct update registration
  3. If the actions in step 2 have not been successful in correcting the issue, provide user with an option to perform a full repair of the installed .NET Frameworks.
  4. Optionally send a CAB file containing system logs for transmission to Microsoft.

In a trial run on this author's machine, the program's operation took approximately 20 minutes.  When completed, a cab file was left in %TEMP% directory which contained all of the log files from my user directory's AppData.  The cab also included registry dump files for HKCR and HKLM (HKEY_LOCAL_MACHINE).

Full details on the program’s operation are available in a blog post by The .NET Fundamentals Team and in its corresponding KB article.  The latest version, V1.3, includes support for all .NET Frameworks through 4.6.1.  It supports operation on Windows operating systems through Windows 7 Service Pack 1 and Windows Server 2008 R2 Service Pack 1.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Too bad the tools doesn't always work

    by Paw Baltzersen /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    I've messed up my .NET installation several times and tried this tool with no luck.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.