locked
Ngen fails due to insufficient resources (HRESULT: 0x800705AA) when trying to install MVC 1 RRS feed

  • Question

  • User-260024476 posted

    I am trying to install MVC 1, but the install ends prematurely and rolls back the entire install.

    First I have traced the MVC installation and found that NGEN errors and causes the installer to roll back:

    ExecNetFx:  Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4016
    ExecNetFx:  Copyright (c) Microsoft Corporation.  All rights reserved.
    ExecNetFx:  Installing assembly System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35
    ExecNetFx:  Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
    ExecNetFx:  Error 0x8007006d: failed to allocate output string
    ExecNetFx:  Error 0xffffffff: Command line returned an error.
    ExecNetFx:  Error 0xffffffff: failed to execute Ngen command: C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

    Then I have tried to troubleshoot NGEN:

    12/10/2009 21:28:14 [7284]: Command line: ngen display
    ... a very long list ...
    12/10/2009 21:29:08 [7284]: ngen returning 0x00000000

    12/10/2009 23:30:35 [2924]: Command line: ngen executeQueuedItems
    12/10/2009 23:30:35 [2924]: Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
    12/10/2009 23:30:35 [2924]: ngen returning 0xffffffff


    12/10/2009 23:31:11 [3036]: Command line: ngen update
    12/10/2009 23:31:11 [3036]: Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
    12/10/2009 23:31:11 [3036]: ngen returning 0xffffffff

    I have also tried the above installation and NGEN troubleshooting in safe mode afteer making sure the the disk is OK with CHKDSK. Still no luck.

    The seems to be plenty of system resources. The errors occur on a system using Windows Vista Ultimate (32 bit) with 4GB of RAM and 50 GB free disk.

    I would appreciate any guidance to solve or work around the NGEN problem to get MVC installed.

    Thanks, Ole

    Friday, December 11, 2009 5:07 AM

Answers

All replies

  • User-126244515 posted

    A few things to check:

    1. Are you running as a local Administrator?
    2. Is there page file on the C-drive (system)?
    3. Do you have many user profiles registered on your machine?
    Friday, December 11, 2009 6:27 AM
  • User-260024476 posted

  • Are you running as a local Administrator?

    Yes, the ngen commands and all the troubleshooting were executed in a command prompt running as administrator from my Admin account

    I performed the very first MVC install from my Business account (standard user) and the logged in as Admin (Administrator account) when requested by the installation script

  • Is there page file on the C-drive (system)?

    Yes, the paging file is almost 4GB - that is almost 8GB virtual memory

  • Do you have many user profiles registered on your machine?

    I have 4 accounts: Admin, Business, Private and Guest (currently disabled)

     

     

Friday, December 11, 2009 7:55 AM
  • User-126244515 posted

    Is your system (Windows, Visual Studio, and the .NET Framework) up-to-date with SPs and patches? I guess what I'm asking is if Windows Update is run frequently and updates applied as they're available?

    Do you have any anti-virus software running, that you can temporarily disable to see if that brings anything?

    Friday, December 11, 2009 8:23 AM
  • User-260024476 posted

    Yes, the system is fully updated. I actually pulled this weeks patches and rebooted just before starting the MVC install.

    However the 3 relating to some extra security failed and i decided they were not needed in my setup.

     

    I am using McAfee, but it was like almost everything else fully disabled when i were troubleshooting in safe mode.

    Friday, December 11, 2009 8:31 AM
  • User-126244515 posted

    when i were troubleshooting in safe mode.
     

    Were you trying to install in Windows Safe Mode?

    Friday, December 11, 2009 9:28 AM
  • User-260024476 posted

    I primarily tried to get NGEN up and running again in Windows safe mode, since I guess that more resources are freed in safe mode. But with the same results.

    I may also have tried the MVC installer, but this really makes no sense as long as NGEN will not execute the queued items.

    Is there any way to find out what resources NGEN is needing or missing?

    Is there any way to view or clear the NGEN queue?

    Do you know how to patch the MVC installer to skip NGEN and the GAC installation?

    Thanks, Ole

    Friday, December 11, 2009 9:45 AM
  • User-260024476 posted

    I have now without success trawled most of the internet without finding a way to troubleshoot my problem with NGEN.

    My best guess is that NGEN in special situations ends up in an indefinite loop using all the resources on the computer. This guess is based on these and other similar posts:

    http://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/61483acc-b5ff-46ee-9094-2542848f4a00

    http://forums.asp.net/p/1423139/3163180.aspx

    I therefore returned to my original source of troubleshooting the MVC installer:

    http://haacked.com/archive/2009/03/05/troubleshooting-installers.aspx

    Then finally I decided to take the risk and patch the MVC installer to skip the optimizing performed by NGEN. I used InstEdIt/ORCA to set the level of the two NGEN features to 0 - and then the installation completed successfully.

    Please note: This is a risky and unsupported workaround - my system still has an unresolved problem with NGEN that may cause even bigger trouble in the future. A fresh install of Windows is now my only long term solution...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 14, 2009 6:59 AM