.NET Framework 4 fails to install on Dell N5040 Core i3 with Windows 7 x64 (Win7 Home edition)

Answered .NET Framework 4 fails to install on Dell N5040 Core i3 with Windows 7 x64 (Win7 Home edition)

  • Tuesday, May 08, 2012 3:20 AM
     
     

    When my laptop was experiencing serious issues (1. I could not run most of the software as they stopped working, 2. It could not restore or create restore point among other issues).

    After following a tutorial on this website, I discovered that I had 2 versions of .Net Framework so I uninstalled them according to the instruction. Since then I could not get .Net Framework installed on my machine since then and the problems of programs stop working and inability to restore or create restore point are still there till now despite many tutorials I followed on this website.

    Kindly help me out to get my machine back to good condition. The machine is just about 4 months old.

    Thank you.

All Replies

  • Tuesday, May 08, 2012 2:16 PM
     
     

    First, it sounds like your laptop has issues that go far beyond anything associated with a .NET Framework. Restoring your system to as-delivered configuration using Dell's procedure would be a solution I would seriously consider, especially as your laptop is only 4 months old and you are entitled to free Dell technical support.

    That said, on the subject of .NET Framework(s), we need to find out if the embedded .NET Framework that came in Windows 7 is corrupt. To do that, run this verification tool:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Select .NET Framework 3.5 from the list, then post the first 15 lines and last 15 lines of tool output here. Depending on the results, we can go from there.

    It would help if you could tell us what .NET Framework versions you removed. It is NOT unusual to have multiple .NET Framework versions installed on a system, so that is not your problem.

    Specific to .NET Framework 4.0, this is the procedure I recommend (I suggest you first do the verification above):

    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/download/en/details.aspx?displaylang=en&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://www.microsoft.com/downloads/details.aspx?FamilyID=E0DA314F-6216-4A18-BC6B-7D29CF83AF20&displaylang=e&displaylang=en

    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.

  • Tuesday, May 08, 2012 10:10 PM
     
     
    Thanks.

    There is no version of .Net Framework installed on my machine presently. I once had version 3.5 and 4 on it but when most software could not work, I followed an instruction on this forum to uninstall all .Net versions and re-installed and when I did the uninstallation, I could not re-install it back till date.

    The .Net Framework Setup Verification Utility also stopped working. Below is the requested information from the output.



    [05/08/12,22:56:11] Beginning of new SetupVerifier activity logging session
    [05/08/12,22:56:11] Activity log file location: C:\Users\AmpTechs\AppData\Local\Temp\setupverifier_main_05-08-12_22.56.11.txt
    [05/08/12,22:56:11] Error log file location: C:\Users\AmpTechs\AppData\Local\Temp\setupverifier_errors_05-08-12_22.56.11.txt
    [05/08/12,22:56:11] Build created on December 29, 2011
    [05/08/12,22:56:11] Detected operating system: Windows 7 (x64)
    [05/08/12,22:56:11] Install state for .NET Framework 1.0: not installed.
    [05/08/12,22:56:11] Install state for .NET Framework 1.1: not installed.
    [05/08/12,22:56:11] Install state for .NET Framework 2.0: installed with service pack 2.
    [05/08/12,22:56:11] Install state for .NET Framework 3.0: installed with service pack 2.
    [05/08/12,22:56:11] Install state for .NET Framework 3.5: installed with service pack 1.
    [05/08/12,22:56:11] Install state for .NET Framework 4 Client: not installed.
    [05/08/12,22:56:11] Install state for .NET Framework 4 Full: not installed.
    [05/08/12,22:56:11] Not adding product '.NET Framework 1.0' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 1.1' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 2.0' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 3.0' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 3.5' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 4 Client' because it is not currently installed
    [05/08/12,22:56:11] Not adding product '.NET Framework 4 Full' because it is not currently installed


    [05/08/12,22:57:01] Section [Registry GE - .NET Framework 3.5 SP1 (Wow6432Node)] - stop parsing entries
    [05/08/12,22:57:01] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - start parsing entries
    [05/08/12,22:57:01] File C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\RedistList\FrameworkList.xml (no version info) is installed on the system
    [05/08/12,22:57:01] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - stop parsing entries
    [05/08/12,22:57:01] Processing custom action 'Custom Action - .NET Framework 2.0 test application'
    [05/08/12,22:57:01] ExecutablePath = 'Netfx20TestApplication.exe'
    [05/08/12,22:57:01] FriendlyName = '.NET Framework 2.0 test application'
    [05/08/12,22:57:01] TimeoutSeconds = '300'
    [05/08/12,22:57:01] WaitOnExit = 'true'
    [05/08/12,22:57:01] Silent = 'true'
    [05/08/12,22:57:01] Launching process 'Netfx20TestApplication.exe' now
    [05/08/12,22:57:01] Process successfully launched. Waiting 300 seconds for it to complete.
    [05/08/12,22:57:02] ****ERROR**** Process 'Netfx20TestApplication.exe' exited with return code -532459699
    [05/08/12,22:57:02] Not running action 'Files - .NET Framework netfxperf.dll' for product '.NET Framework 3.5 SP1' because the OS condition does not match
    [05/08/12,22:57:02] ****ERROR**** Verification failed for product .NET Framework 3.5 SP1
  • Tuesday, May 08, 2012 10:30 PM
     
     Answered

    Actually, these .NET Framework versions ARE installed on your system:

    From the verifier log:

    05/08/12,22:56:11] Install state for .NET Framework 2.0: installed with service pack 2.
    [05/08/12,22:56:11] Install state for .NET Framework 3.0: installed with service pack 2.
    [05/08/12,22:56:11] Install state for .NET Framework 3.5: installed with service pack 1.

    Unfortunately, they are corrupt. Again from the log:

    Launching process 'Netfx20TestApplication.exe' now
     [05/08/12,22:57:01] Process successfully launched. Waiting 300 seconds for it to complete.
     [05/08/12,22:57:02] ****ERROR**** Process 'Netfx20TestApplication.exe' exited with return code -532459699
     [05/08/12,22:57:02] Not running action 'Files - .NET Framework netfxperf.dll' for product '.NET Framework 3.5 SP1' because the OS condition does not match
     [05/08/12,22:57:02] ****ERROR**** Verification failed for product .NET Framework 3.5 SP1

    The proper technique for repairing embedded .NET Frameworks is here:

    http://blogs.msdn.com/b/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx

    Try this, then rerun the verifier. If the test app fails again, you will have to reinstall your OS.

  • Tuesday, May 08, 2012 11:32 PM
     
     

    Thank you very much. Version 4 of .NET is now successfully installed but programs still stop working and machine cannot restore or create restore points.

    [05/09/12,00:33:32] Beginning of new SetupVerifier activity logging session
    [05/09/12,00:33:32] Activity log file location: C:\Users\AmpTechs\AppData\Local\Temp\setupverifier_main_05-09-12_00.33.32.txt
    [05/09/12,00:33:32] Error log file location: C:\Users\AmpTechs\AppData\Local\Temp\setupverifier_errors_05-09-12_00.33.32.txt
    [05/09/12,00:33:32] Build created on December 29, 2011
    [05/09/12,00:33:32] Detected operating system: Windows 7 (x64)
    [05/09/12,00:33:32] Install state for .NET Framework 1.0: not installed.
    [05/09/12,00:33:32] Install state for .NET Framework 1.1: not installed.
    [05/09/12,00:33:32] Install state for .NET Framework 2.0: installed with service pack 2.
    [05/09/12,00:33:32] Install state for .NET Framework 3.0: installed with service pack 2.
    [05/09/12,00:33:32] Install state for .NET Framework 3.5: installed with service pack 1.
    [05/09/12,00:33:32] Install state for .NET Framework 4 Client: installed with no service packs.
    [05/09/12,00:33:32] Install state for .NET Framework 4 Full: installed with no service packs.
    [05/09/12,00:33:32] Not adding product '.NET Framework 1.0' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 1.1' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 2.0' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 3.0' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [05/09/12,00:33:32] Not adding product '.NET Framework 3.5' because it is not currently installed
    [05/09/12,00:33:40] Starting verification for product .NET Framework 4 Full
    [05/09/12,00:33:40] Section [Files - .NET Framework 4 Client (Common)] - start parsing entries
    [05/09/12,00:33:40] File C:\windows\Microsoft.NET\assembly\GAC_32\CustomMarshalers\v4.0_4.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll (version 4.0.30319.1) is installed on the system


    [05/09/12,00:34:16] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
        Value: InstallPath
        Actual Data:    REGISTRY VALUE FOUND
    [05/09/12,00:34:16] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
        Value: Servicing
        Actual Data:    REGISTRY VALUE FOUND
    [05/09/12,00:34:16] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
        Value: TargetVersion
        Expected Data:    4.0.0
        Actual Data:    4.0.0
    [05/09/12,00:34:16] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
        Value: Version
        Actual Data:    REGISTRY VALUE FOUND
    [05/09/12,00:34:16] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - stop parsing entries
    [05/09/12,00:34:16] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [05/09/12,00:34:16] ExecutablePath = 'Netfx40TestApplication.exe'
    [05/09/12,00:34:16] FriendlyName = '.NET Framework 4 test application'
    [05/09/12,00:34:16] TimeoutSeconds = '300'
    [05/09/12,00:34:16] WaitOnExit = 'true'
    [05/09/12,00:34:16] Silent = 'true'
    [05/09/12,00:34:16] Launching process 'Netfx40TestApplication.exe' now
    [05/09/12,00:34:16] Process successfully launched. Waiting 300 seconds for it to complete.
    [05/09/12,00:34:21] Process 'Netfx40TestApplication.exe' exited with return code 0
    [05/09/12,00:34:21] Verification succeeded for product .NET Framework 4 Full

    • Edited by AmpTechs Tuesday, May 08, 2012 11:38 PM
    •  
  • Tuesday, May 08, 2012 11:46 PM
     
     Answered

    Good on the .NET 4.0 :-)

    The restore point issue is a Windows 7 thing. For best help with that, please try here:

    http://answers.microsoft.com/en-us/windows/forum/windows_7