none
installation of .net framework failed, and the error code is (0xC8000222) please help RRS feed

  • Question

  • I tried many times to install .netframework 4 but it always failed and the error code is (0xC8000222) so please give me quick help. 
    Friday, December 28, 2012 4:41 PM

Answers

  • From your log, I notice two things:

    SP1 for Windows 7 is not installed. I strongly suggest that you patch your OS up to date before making more install attempts.

    I see multiple install logs for .NET 4.0 in your vslogs, indicating that you are no clearing your %temp% directory before each attempt.

    Please try these steps after updating your OS:

    Follow ALL these steps exactly:

    Before trying to install .NET Framework 4.0, execute this command from an ELEVATED Command Prompt provided by the .NET Framework Team:

    "This issue is likely caused by a bad ACL on assembly\tmp folder. After installing updates, the ACL propagates to installed assembly folders in both 4.0 & legacy GAC.  If those updates were installed by WU or another user, the propagated ACL will prevent install of the same assembly by the current user.

    A work around would be to reset the ACL on GAC dirs.

    for /F %D in ('dir %WINDIR%\assembly %WINDIR%\Microsoft.NET\assembly /s /b /a:d') do takeown /F %D && icacls %D /reset /T"

    After running that command, follow these steps:

    Please follow these instructions exactly:

    1. Download a fresh copy of the standalone installer for .NET Framework 4.0:

    http://www.microsoft.com/en-us/download/details.aspx?id=17718

    2. Also, clear your %temp% directory and disable your AV software.

    The %temp% directory is a reference to the Temp folder associated with the current user. To clear it, do the following:

    Sign on to your system with the Administrator user account you will use to run the installer. Click the Start Orb and type %temp% in the search box. The search results will show the Temp folder you want. Click on the Temp folder to open it in Windows Explorer, then delete the entire contents.

    3. Run the standalone installer from step 1 As Administrator.

    Note: Just using an administrator account is NOT enough. To activate full privileges, you must right-click the installer, then select Run as administrator.

    If the install fails, provide complete install logs as follows:

    Please collect your install logs with this:

    http://aka.ms/vscollect

    After you run Collect.exe, you'll find vslogs.cab in your %temp% directory. Please upload vslogs.cab to a public site, like SkyDrive, and post the link here.

    • Marked as answer by shrief.hany Sunday, December 30, 2012 12:19 AM
    Saturday, December 29, 2012 2:21 PM

All replies

  • Please share your Windows version and Service Pack level.

    Also, provide your install logs as follows:

    Please collect your install logs with this:

    http://aka.ms/vscollect

    After you run Collect.exe, you'll find vslogs.cab in your %temp% directory. Please upload vslogs.cab to a public site, like SkyDrive, and post the link here.

    Saturday, December 29, 2012 12:08 AM
  • first thank you for your interest, I am using windows 7 64-bit

    https://skydrive.live.com/redir?resid=12D25B6033ED5732!164&authkey=!AIo-8si0CNx-ks4

    Saturday, December 29, 2012 3:26 AM
  • From your log, I notice two things:

    SP1 for Windows 7 is not installed. I strongly suggest that you patch your OS up to date before making more install attempts.

    I see multiple install logs for .NET 4.0 in your vslogs, indicating that you are no clearing your %temp% directory before each attempt.

    Please try these steps after updating your OS:

    Follow ALL these steps exactly:

    Before trying to install .NET Framework 4.0, execute this command from an ELEVATED Command Prompt provided by the .NET Framework Team:

    "This issue is likely caused by a bad ACL on assembly\tmp folder. After installing updates, the ACL propagates to installed assembly folders in both 4.0 & legacy GAC.  If those updates were installed by WU or another user, the propagated ACL will prevent install of the same assembly by the current user.

    A work around would be to reset the ACL on GAC dirs.

    for /F %D in ('dir %WINDIR%\assembly %WINDIR%\Microsoft.NET\assembly /s /b /a:d') do takeown /F %D && icacls %D /reset /T"

    After running that command, follow these steps:

    Please follow these instructions exactly:

    1. Download a fresh copy of the standalone installer for .NET Framework 4.0:

    http://www.microsoft.com/en-us/download/details.aspx?id=17718

    2. Also, clear your %temp% directory and disable your AV software.

    The %temp% directory is a reference to the Temp folder associated with the current user. To clear it, do the following:

    Sign on to your system with the Administrator user account you will use to run the installer. Click the Start Orb and type %temp% in the search box. The search results will show the Temp folder you want. Click on the Temp folder to open it in Windows Explorer, then delete the entire contents.

    3. Run the standalone installer from step 1 As Administrator.

    Note: Just using an administrator account is NOT enough. To activate full privileges, you must right-click the installer, then select Run as administrator.

    If the install fails, provide complete install logs as follows:

    Please collect your install logs with this:

    http://aka.ms/vscollect

    After you run Collect.exe, you'll find vslogs.cab in your %temp% directory. Please upload vslogs.cab to a public site, like SkyDrive, and post the link here.

    • Marked as answer by shrief.hany Sunday, December 30, 2012 12:19 AM
    Saturday, December 29, 2012 2:21 PM
  • thank you, the installation has completed successfully 
    Sunday, December 30, 2012 12:39 AM