Jump to content
Updated Privacy Statement
  • 0

Unable to finalize OS layer/ NGen.exe


Xavier Blackwood

Question

Help.. This just started happening and I am not sure what is causing it. When a try to finalize our Server 2016 OS layer I get the error below, A Microsoft NGen operation is needed. If i check the ngen queue status, there are no updates needed and it says the .Net optimization service isn't running. I have tried updating OS layers going back to October and they all do the same thing. The only change I can point to is updating to the latest app layering version. I have tried Citrix support but their App layering team never answers.. 

 

image.thumb.png.6f581230d80aec98da60930fe98b36ae.png

Link to comment

6 answers to this question

Recommended Posts

  • 0

I assume you have tried rebooting after you get that which is always required.  If you have not run ngen you should run both the 32 and 64 bit versions. I always use ngen update with no force.  If you have caching enabled on your connectir try treating another without caching and use that.  We do have issues with caching connectors and ngen but usually the issue is that the  layer disk fills up. 

Link to comment
  • 0

I had another issue recently when I couldn't create new App layers with a Pre Req layer (Office 2016) included. Citrix support instructed me to turn off caching as the workaround. Could turning off caching cause an ngen issue? I did run both 32 and 64 bit ngen but used the commands ngen eqi and ngen update /force. I did also reboot. I will try again without the /force switch.. 

Link to comment
  • 0

Just in case the original issue (A Microsoft NGen operation is needed) is causing anyone else issues and everything checks out in the registry, I found this script which resolved it for me.  It has a slightly different syntax than what I had been using for about the past 2 years but it worked.

 

Get-ChildItem  $env:SystemRoot\Microsoft.NET\ ngen.exe -Recurse | ForEach-Object {
  & $_.FullName executequeueditems
}

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...