Hi,
We use aspnet_compiler to precompile our asp.net web application:
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -errorstack -m /LM/W3SVC/1001/Root c:\precompiledsite
We noticed in production that the runtime is not caching .compiled files to memory and going to disk for every request. This is not the case on dev boxes.
The problem turned out to be the 'flags' attribute generated by the aspnet_compiler for the .compiled preservation files. On the production build server, the flags are generated with value 100000
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="3" virtualPath="/Sales/MasterPages/CommonHead.ascx" hash="5a34622c" filehash="ffffff779f613682" flags="100000" assembly="app_precompiled" type="ASP.sales_masterpages_commonhead_ascx">
<filedeps ...
Go to the complete details ...