Article ID: 331979 - View products that this article applies to.
This article was previously published under Q331979
This article has been archived. It is offered "as is" and will no longer be updated.
The Native Image Generator (Ngen.exe) creates a native image from a managed assembly and then installs the image into the native image cache on the local computer. When you use the images that you created with Ngen.exe from ASP.NET assemblies, the common language runtime ignores them and then reverts back to the original image for just-in-time compilation (JIT).
The common language runtime cannot load images that you create with NGEN into the shared application domain. Because ASP.NET standard assemblies are shared and are then loaded into a shared application domain, you cannot use Ngen.exe to install them into the native image cache on the local computer.
For more information about Native Image Generator (Ngen.exe), visit the following Microsoft Developer Network (MSDN) Web site:
For more information about loading assemblies into the application domain, visit the following MSDN Web site:
Contact us for more help
Connect with Answer Desk for expert help.