suzy wrote:
hi,
i know that when i browse to a website for the 1st time the code gets
compiled into a dll and is cached. but this dll gets removed from cache
after a period of inactivity, right?
someone told me it is possible to control the length of time the dll is
cached in the web.config file?
is this correct, and can anyone give me an example of how to do it?
The ASPX file gets parsed and compiled into a DLL the first time the
page is hit. The DLL is written to a subdirectory under:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files
That same DLL will be used from there on, until the ASPX file (or some
other file the DLL is dependent on) is modified - there will not be
another parse & compile step unless the page is modified.
However, the DLL for the page will be unloaded from memory when the
application is closed, which can happen for several reasons:
The app needs to get recycled due to some detected problem
The app is shutdown due to being idle for 20 minutes (this is
configurable in web.config's <httpRuntime> element.
Etc.
--
mikeb