How do I decrease first load time in ASP.net MVC 2?

Posted by Bill on Stack Overflow See other posts from Stack Overflow or by Bill
Published on 2011-01-10T20:29:01Z Indexed on 2011/01/11 14:53 UTC
Read the original article Hit count: 251

Filed under:
|
|
|

I have an ASP.net MVC 2 application that runs well locally. However when I move the files to my production server, I get a first time lag of about 30 seconds, I assume this is a first compile. After that the application works fine. Then after about 20-30 minutes of non use, the applications takes another 30 seconds or so to load.

I did try to precompile the code, but there is still a lag during the first load.

Are there any trick to getting the application to work faster on the first load?

I am using ASP.net 3.5, IIS 6 , visual studio 2010, MVC 2.

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc-2