1. 程式人生 > >Win7 安裝VS2010, .net framework 4.0 失敗,錯誤HRESULT 0xc8000222解決辦法

Win7 安裝VS2010, .net framework 4.0 失敗,錯誤HRESULT 0xc8000222解決辦法

之前裝Viusal Stuido 2010 一直失敗,其實在在安裝.net framework 4.0時就失敗……後來就單獨安裝.net framework 4.0,結果還是失敗,出現HRESULT 0xc8000222錯誤程式碼,

去官網上查詢,發現作如下操作步驟即可

This behavior may occur if the temporary folder of Windows Update has been corrupted. We can refer to the following steps to rename this folder. Please be assured the folder will be created again when we visit the Windows Update site again.

1. Click Start, Run, type: cmd and press Enter. Please run the following command in the opened window.

net stop WuAuServ



2. Click Start, Run, type: %windir% and press Enter.
3. In the opened folder, rename the folder SoftwareDistribution to SDold.
4. Click Start, Run, type: cmd and press Enter.

Please run the following command in the opened window.

net start WuAuServ

/** *@title :WIndows 7 安裝.net framework 4.0 失敗,錯誤HRESULT 0xc8000222解決辦法
*@Author:insun *@blog:http://yxmhero1989.blog.163.com */ 為了裝個Mysql Workbeach(mysql-workbench-gpl-5.2.39-win32) 設計資料庫 需要net framework4 發現不好安裝 win7裝不了dotNetFx40_Client_setup??? 尚未安裝 .NET Framework 4 Client Profile,原因是:HRESULT 0xc8000222 原來跟windows update有關 真心蛋疼啊!!! 解決辦法: 1.在win7的C:\Windows\System32目錄裡面  右鍵cmd.exe以管理員方式執行
2.上面的cmd命令列裡面輸入 net stop WuAuServ 3.繼續輸入 echo %windir% 4.在彈出來的資料夾(一般是C:\Windows),把SoftwareDistribution 資料夾改個名字 SDold(隨意改). 5.繼續輸入 net start WuAuServ OK。