Last post Dec 14, 2009 06:59 AM by OleFrost
Dec 11, 2009 05:07 AM|OleFrost|LINK
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=126.96.36.199, 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=188.8.131.52, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
Then I have tried to troubleshoot NGEN:
12/10/2009 21:28:14 : Command line: ngen display
... a very long list ...
12/10/2009 21:29:08 : ngen returning 0x00000000
12/10/2009 23:30:35 : Command line: ngen executeQueuedItems
12/10/2009 23:30:35 : Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
12/10/2009 23:30:35 : ngen returning 0xffffffff
12/10/2009 23:31:11 : Command line: ngen update
12/10/2009 23:31:11 : Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
12/10/2009 23:31:11 : 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.
ASP.NET MVC 1.0 Install NGEN 0x800705AA
Dec 11, 2009 06:27 AM|integrasol|LINK
A few things to check:
Dec 11, 2009 07:55 AM|OleFrost|LINK
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
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)
Dec 11, 2009 08:23 AM|integrasol|LINK
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?
Dec 11, 2009 08:31 AM|OleFrost|LINK
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.
Dec 11, 2009 09:28 AM|integrasol|LINK
when i were troubleshooting in safe mode.
Were you trying to install in Windows Safe Mode?
Dec 11, 2009 09:45 AM|OleFrost|LINK
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?
Dec 14, 2009 06:59 AM|OleFrost|LINK
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:
I therefore returned to my original source of troubleshooting the MVC installer:
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...