Microsoft Native Image Generator (NGen) – fails complaining that ‚NGen cannot proceed because Mscorlib.dll does not have a native image‘

NGen error because „Mscorlib.dll does not have a native image“ (x64 only, .NET 4.0 only)

This is unhealthy. The ngen-ed image of mscorlib.dll should have been created when .NET was installed on your machine. It is located in – C:\windows\assembly\NativeImages_v4.0.30319_64\
mscorlib\ab0a8fc3d086a3aaf942f366a12a9185\mscorlib.ni.dll – you cannot see this file with Windows Explorer you must use the command prompt. Go check to see if it there something went seriously wrong when .NET was installed if it is missing. The „.NET Runtime Optimization Service“ is the one that gets that job done make sure you didn’t disable it

Leave a Reply

You must be logged in to post a comment.