Hi
I have created a windows exe based on an article from ?ASP Today?
called ?Precompilation of ASP.NET based web sites?. The program reads an
xml file to retrieve the URL of an .NET web app and then creates web
requests to each of the .aspx pages contained in the site. The aim of the
program is to compile all of the .aspx pages into assemblies in
the ?Temporary ASP.NET Files? folder so that the initial users of the site
do not have a performance hit when first viewing a page.
If I have just installed the site on a machine and there are no temporary
assemblies for the site then the program does increase the performance of
viewing a page for the first time. However there still seems to be a
difference in the performance of viewing a page for the first time and
then going back and viewing the page again even after the temporary
assemblies have been created. Also if I restart iis then this extra
performance is lost but the temporary assemblies are still there. In
short it seems like I am able to achieve three levels of performance after
an initial installation.
1. Just going straight ahead and trying to view a page for the first
time (slow)
2. Running the precompilation program to create the temporary files
and assemblies, then trying to view the page for the first time (slightly
faster).
3. Doing step 2 then going back and viewing the page again (fastest)
The program allows me to achieve the level 2 performance that I have
listed but I would like to achieve level three. This would allow me to
have the windows app as an exe which fired off on the server every time
iis was restarted so that initial performance was not lost.
Does anyone have any ideas as to what information is lost when restarting
iis which might decrease the performance.
Mark.