When you try to install updates for the .NET Framework by using Windows Update or Microsoft Update, you may receive an error that has one of the following error codes:
Note If you are not installing the .NET Framework Updates when you receive error code 0x8007066A, go to the following article for troubleshooting steps:
2545723
(http://support.microsoft.com/kb/2545723/
)
How to Enable Microsoft Installer logging and Verbose logging to gather additional troubleshooting Information
This problem can be caused by system corruption on your computer. This may occur for various reasons, including but not limited to corrupted hard disk sectors or another application overwriting the .NET files.
To troubleshoot this issue, follow the steps in these methods, starting with method 1.
Method 1: Repair the .NET Framework 4 installation
Collapse this imageExpand this image
Follow these steps if you are running
Windows Vista or
Windows 7:
- Close all programs.
- Click Start, type Uninstall in the Search box, and then click Uninstall a program.
- Double-click Microsoft .NET Framework 4 Client Profile.
- Select Repair .NET Framework 4 Client Profile to its original state, and then click Next.
- When the repair is complete, click Finish.
- Click Restart Now to restart your computer.
- To install the latest Windows updates, click Start, click All Programs, and then click Windows Update.
Follow these steps if you are running
Windows XP:
- Close all programs.
- Click Start, click Control Panel, and then click Add Remove Programs.
- Click Microsoft .NET Framework 4 Client Profile in the list of installed applications, and then click Change\Remove.
- Select Repair .NET Framework 4 Client Profile to its original state, and then click Next.
- When the repair is complete, click Finish.
- Click Restart Now to restart your computer.
- After you log on to Windows, click Start, click All Programs, click Windows Updates, and then click Check for updates.
- When the scan is complete, click Install Windows Updates, and then follow the instructions.
If the issue is not resolved, go to method 2.
Collapse this imageExpand this image
Method 2: Fix MSI software update registration corruption issues
Collapse this imageExpand this image
To fix MSI software update registration corruption issues, run the automated Fix it tool in article
971187
(http://support.microsoft.com/kb/971187)
in the Microsoft Knowledge Base.
After you run the Fix it tool, click
Start, click
AllPrograms, and then click
Windows Update. Try to install the updates again.
If the issue is not resolved, go to method 3.
Collapse this imageExpand this image
Method 3: Manually download and install the update
Collapse this imageExpand this image
To manually download and install updates, follow these steps:
- Click Start, click All Programs, and then click Windows Update or Microsoft Update.
- To view your update history, do one of the following based on your version of Windows:
- If you are running Windows XP, click Review your update history in the left pane of Control Panel.
- If you are running Windows Vista or Windows 7, click View update history in the left pane of Control Panel.
- In the list of updates, find the update that contains the error message, and note the Knowledge Base (KB) article number for the update that you want to install.
- Go to the Windows Downloads
(http://www.microsoft.com/download/)
website. - In the Search Download Center box at the top of the page, type KB and then type the article number for the update.
Collapse this imageExpand this image
- Press Enter or click the search icon.
For example, if the KB article number that is listed for the update is 123456, type KB123456 in the search box, and then press Enter or click the search icon (the search icon looks like a white magnifying glass on an orange square). - In the Search Results list, locate the KB article that you searched for, and then go to that article.
- Click Download, and then click Save in the File Download dialog box.
Collapse this imageExpand this image
- In the Save in list, click Desktop, and then click Save.
- On your desktop, locate the file that you downloaded, and then double-click the file to install the update.
Note If the update is unsuitable for your computer, the installation may still fail.
Collapse this imageExpand this image
Method 4: Repair the .NET Framework
Collapse this imageExpand this image
To repair the .NET Framework, you must first uninstall multiple versions of the .NET Framework by using the .NET Framework Cleanup Tool. Then, reinstall the components.
To do this, follow these steps:
- To download the tool, go to the following MSDN blog post:
- After the download is complete, click View downloads.
Collapse this imageExpand this image
- In the Downloads folder, right-click dotnetfx_cleanup_tool.zip, click Extract all, and then click Extract.
- In the list of files that you extracted, double-click cleanup_tool.exe.
Note If you are prompted for an administrator password or for confirmation, provide the password or confirmation, or click Continue. - In the Do you want to run the .NET Framework Setup Cleanup Utility message, click Yes.
Note This tool may be in English only, but it also works for other language versions of Windows. - Click Yes to accept the license agreement, and then wait for the .NET Framework Cleanup Tool to start.
- In Product to cleanup, click the list, select NET Framework - All Versions, and then click Cleanup Now.
Note The cleanup tool does not let you remove the .NET Framework 2.0 in Windows Vista or later versions of Windows because the .NET Framework is installed as an operating system component. - After the .NET Framework is removed, restart the computer.
- Download and install the following components:
The .NET Framework 1.1:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3
(http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3)
The .NET Framework 1.1 SP1:
http://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&displaylang=en)
The NET Framework 3.5 SP1 (this also installs the.NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2)
http://www.microsoft.com/downloads/details.aspx?familyid=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en)
- Shut down and then restart your computer.
- Click Start, click All Programs, click Windows Update, and then try to install the updates again.
For more information about the .NET Framework Cleanup Tool, go to the
.NET Framework Cleanup Tool User's Guide
(http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx)
blog post.
Collapse this imageExpand this image
More information:
If these steps did not resolve your issue, you may need to collect additional logging information to troubleshoot your issue. To do this, follow the steps in the following Microsoft Knowledgebase article:
If this article does not answer your question, click this button to ask other community members at Microsoft Community:
Article ID: 2507641 - Last Review: February 27, 2013 - Revision: 19.1
Applies to
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- Microsoft Windows XP Starter Edition
- Windows Vista Starter
- Windows Vista Home Basic
- Windows Vista Home Premium
- Windows Vista Business
- Windows Vista Ultimate
- Windows Server 2008 Standard
- Windows Server 2008 Datacenter
- Windows Server 2008 Enterprise
- Windows Server 2008 Foundation
- Windows 7 Starter
- Windows 7 Home Basic
- Windows 7 Home Premium
- Windows 7 Enterprise
- Windows 7 Professional
- Windows 7 Ultimate
- Windows Server 2008 R2 Standard
- Windows Server 2008 R2 Datacenter
- Windows Server 2008 R2 Enterprise
- Windows Server 2008 R2 Foundation