Martin,
>We are going to build a web application which will run on a server, but also on notebooks of salespeople. We want to use ASP.NET for this project, but every time the notebook is shut down the application is JITted again. This drops performance to a unacceptable rate. Is it possible to JIT the app once with installation of the application and just run this JITted code?
It is possible, by using a .NET utility NGEN.exe. However, NGEN is typically used to precompile assemblies on client machines rather than applications that run server-side such as ASP.NET apps. Since .NET caches the compiled code for subsequent calls, it's only the first hit that produces the JIT compilation--subsequent hits run the cached code.
For more information, see the .NET help topic "Native Image Generator (Ngen.exe)" for details. Another interesting .NET help topic is "Walkthrough: Using a Custom Action to Pre-Compile an Assembly During Installation".
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com