Microsoft KB Archive/908077

= How to troubleshoot Microsoft .NET Framework 2.0 installation issues =

Article ID: 908077

Article Last Modified on 12/3/2007

-

APPLIES TO

 Microsoft .NET Framework 2.0, when used with:  Microsoft Windows Server 2003, 64-Bit Datacenter Edition

 Microsoft Windows Server 2003, Enterprise x64 Edition

 Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

 Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems</li></ul>

 Microsoft Windows Server 2003, Datacenter x64 Edition</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

 Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Standard x64 Edition</li></ul>

 Microsoft Windows 2000 Professional Edition</li></ul>

 Microsoft Windows 2000 Server</li></ul>

 Microsoft Windows 2000 Advanced Server</li></ul>

<ul> <li>Microsoft Windows 2000 Datacenter Server</li></ul>

<ul> <li>Microsoft Windows XP Professional</li></ul>

<ul> <li>Microsoft Windows XP Home Edition</li></ul> </li></ul>

-

<div class="notice_section">

<div class="notice_section">

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

<div class="summary_section">

SUMMARY
''You can use the methods in this article to troubleshoot installation issues in the Microsoft .NET Framework version 2.0. This article discusses installations on Microsoft Windows Server 2003, on Windows 2000 Service Pack 3 (SP3), or on Windows XP Service Pack 2 (SP2). The methods that this article discusses include reregistering Microsoft Windows Installer, and repairing, removing, and reinstalling the .NET Framework. To use these methods, you should be familiar with the .NET Framework 2.0, Registry Editor, and Windows Installer. Additionally, one of these methods requires that you change the registry on the computer.''

<div class="summary_section">

INTRODUCTION
This step-by-step article describes how to troubleshoot issues that you may experience when you install the .NET Framework 2.0.

When Microsoft Windows Installer is incorrectly registered in the Windows registry, the .NET Framework 2.0 Setup program cannot access some Windows Installer components. This article discusses how to work around this issue by unregistering and then reregistering Windows Installer.

You may not always be able to completely remove the .NET Framework 2.0 by using the Add/Remove Programs tool in Control Panel. This article also discusses how to work around this issue either by repairing the .NET Framework 2.0 or by manually removing the .NET Framework 2.0 from the computer and then reinstalling the .NET Framework 2.0.

Requirements
The following list outlines the recommended hardware, software, network infrastructure, and service packs that you need: <ul> <li>Microsoft Windows Server 2003, Microsoft Windows 2000 Service Pack 3 (SP3), or Microsoft Windows XP Service Pack 2 (SP2)</li> <li>Microsoft .NET Framework 2.0.

To obtain the Microsoft .NET Framework Version 2.0 Redistributable Package (x86), visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5

To obtain the Microsoft .NET Framework Version 2.0 Redistributable Package (IA64), visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5

</li></ul>

Note To troubleshoot .NET Framework 2.0 installation issues, you must use an account that is in the Local Administrators group on the computer that is running the .NET Framework 2.0.

This article assumes that you are familiar with the following topics:
 * Microsoft .NET Framework 2.0
 * Registry Editor
 * Windows Installer

Unregister and then reregister Windows Installer
This action corrects most situations. Additionally, this action does not affect any currently installed programs that use the Windows Installer.
 * 1) Unregister Windows Installer. To do this, click Start, click Run, type msiexec /unregister in the Open box, and then click OK.
 * 2) Reregister Windows Installer. To do this, click click Start, click Run, type msiexec /regserver in the Open box, and then click OK.

Repair the .NET Framework 2.0
The following are three ways to repair the .NET Framework.

Use the Repair command on the Windows Installer cache file
To repair the .NET Framework 2.0 by using the Windows Installer cache file, follow these steps:
 * 1) Click Start, click Run, type installer in the Open box, and then click OK.
 * 2) On the View menu in Windows Installer, click Details, right-click the Name column header, and then click Comment.
 * 3) Right-click the cached Windows Installer file that has the Microsoft .NET Framework 2.0 RTL x86 enu comment, and then click Repair.
 * 4) After the repair process has completed, quit Windows Installer.

Run the .NET Framework 2.0 Redistributable package at a command prompt
To repair the .NET Framework 2.0 by using the command prompt, follow these steps: <ol> <li>Locate the Dotnetfx.exe file that you used to install the .NET Framework 2.0. To do this, use one of the following methods: <ul> <li>If you installed the .NET Framework 2.0 from a CD or from a DVD, insert the installation disk in the CD drive or DVD drive.</li> <li>If you installed the .NET Framework 2.0 from the hard disk, download the .NET Framework 2.0 Setup program to the hard disk.</li> <li>If you installed the .NET Framework 2.0 from a network drive, reconnect to the network drive.</li></ul> </li> <li>Click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>At the command prompt, run the following command:

 \dotnetfx.exe /t:%temp% /c:&quot;msiexec.exe /fvecms %temp%\netfx.msi&quot;

</li></ol>

Note  is a placeholder for the path of the Dotnetfx.exe file that you located in step 1.

Manually remove and then reinstall the .NET Framework 2.0
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Important These steps may increase your security risk. These steps may also make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to, or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you choose to implement this process, take any appropriate additional steps to help protect your system. We recommend that you use this process only if you really require this process. <ol> <li>Remove the .NET Framework 2.0 from the Windows Installer cache: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type installer in the Open box, and then click OK.</li> <li>On the View menu in Windows Installer, click Details.</li> <li>Right-click the Name column header, and then click Comments.</li> <li>Right-click the cached Windows Installer file that has the Microsoft .NET Framework 2.0 RTL x86 enu comment, and then click Uninstall.</li> <li>After the uninstall process has completed, quit Windows Installer.</li></ol> </li> <li>Manually delete the following from the computer. Note Depending on the current condition of the .NET Framework installation, these items may not exist on the computer. <ul> <li>The URTTemp folder</li> <li>The Mscoree.dll file</li> <li>The v2.0.50727 folder</li></ul>

To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type system32 in the Open box, and then click OK. The contents of the System32 folder appear in Windows Explorer.</li> <li>Locate and then delete the URTTemp folder.</li> <li>Locate and then delete the mscoree.dll file.

Note If the .NET Framework 1.1 or the .NET Framework 1.0 is also installed on the computer, and you do not intend to reinstall the .NET Framework 2.0, you must repair the .NET Framework 1.1 or the .NET Framework 1.0. For more information, see the &quot;Repair the .NET Framework&quot; section of the following Microsoft Knowledge Base article:

824643 How to troubleshoot Microsoft .NET Framework 1.1 installation issues

</li> <li>Click Start, click Run, type microsoft.net in the Open box, and then click OK. The contents of the Microsoft.NET folder appear in Windows Explorer.</li> <li>In the Microsoft.NET folder, double-click the Framework folder.</li> <li>In the Framework folder, delete the v2.0.50727 folder.</li> <li>Close the Framework folder.</li></ol> </li> <li>Manually delete the relevant registry keys: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type regedit in the Open box, and then click OK to start Registry Editor.</li> <li>In Registry Editor, locate and then delete the following registry keys.

Note Depending on the current condition of the .NET Framework installation, these registry keys may not exist on the computer. <ul> <li> </li> <li> </li></ul> </li> <li>Quit Registry Editor.</li></ol> </li> <li>Use the Windows Installer CleanUp Utility (Msizap.exe) to remove Windows Installer information from the registry. The Windows Installer CleanUp Utility is available in the Microsoft Download Center.

The following file is available for download from the Microsoft Download Center:

Download the Windows Installer CleanUp Utility (Msicuu2.exe) package now.

For more information about how to download Microsoft support files, click the following article number to view the 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.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

290301 Description of the Windows Installer CleanUp Utility

To remove Windows Installer information from the registry, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>At the command prompt, locate the directory that contains the Windows Installer CleanUp Utility, and then run the following command:

Msizap TP {7131646D-CD3C-40F4-97B9-CD9E4E6262EF}

</li> <li>Restart the computer.</li></ol> </li> <li>Disable all antivirus programs and all firewall programs that you have installed on the computer. To do this, use the System Configuration Utility (Msconfig.exe) to perform a clean start of your computer. Then disable any services that you do not need.

When you use the System Configuration Utility in diagnostic mode, reenable the Windows Installer Service on the Services tab.

To start the System Configuration Utility, click Start, click Run, type msconfig in the Open box, and then click OK.</li> <li>Delete the contents of the Temp folder: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type %Temp% in the Open box, and then click OK. The contents of the Temp folder appear in Windows Explorer.</li> <li>In the Temp folder, click Select All on the Edit menu.</li> <li>On the File menu, click Delete.

Note Delete as many files and folders as possible from the Temp folder.</li></ol> </li> <li>Reinstall the .NET Framework 2.0. To obtain the Microsoft .NET Framework Version 2.0 Redistributable Package (x86), visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5

To obtain the Microsoft .NET Framework Version 2.0 Redistributable Package (IA64), visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5

Note If you do not want to reinstall the .NET Framework 2.0, and the .NET Framework 1.1 or the .NET Framework 1.0 is installed on the computer, you must repair the .NET Framework 1.1 or the .NET Framework 1.0. You must repair these installations to replace the Mscoree.dll file and the URTTemp folder.</li></ol>

<div class="references_section">