Every time my app pool is recycled, all the pages take very long for the first request. I have a way of keeping the non-authenticated pages warmed up by making a call to them programatically before adding a server back in the load balancer.
For pages that require authentication (we use forms authentication) I’m not sure how to warm up these pages before adding a server in the load balancer.
Can you please help with some ideas?
I’m using ASP.NET 3.5 and IIS 6
Thanks
I think what you are after is precompilation of your pages. Because your application has been restarted again the designer code for the pages has to be compiled again. This takes place after each request.
There is however ways to precompile all of your pages before any requests are made. By precompiling your pages there won’t be a need to request each page programmatically to compile them.
Here are some links outlining how to do this –
http://msdn.microsoft.com/en-us/library/399f057w%28v=vs.85%29.aspx
http://www.asp.net/web-forms/videos/how-do-i/how-do-i-precompile-an-aspnet-website
http://odetocode.com/code/417.aspx