Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

INFO: ASP.NET Does Not Support Pre-Just-In-Time (JIT) Compilation Through Native Image Generator (Ngen.exe)


View products that this article applies to.

Summary

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).

↑ Back to the top


More information

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.

↑ Back to the top


References

For more information about Native Image Generator (Ngen.exe), visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/6t9t5wcf(vs.71).aspx
For more information about loading assemblies into the application domain, visit the following MSDN Web site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconloadingassembliesintoapplicationdomain.asp

↑ Back to the top


Article Info
Article ID : 331979
Revision : 6
Created on : 1/1/0001
Published on : 1/1/0001
Exists online : False
Views : 294