IIS 7.5: Initial request to website never gets loaded

痞子三分冷 提交于 2019-12-12 13:31:47

问题


When I browse my website first time, internet keeps spinning/loading. If I two seconds later try to load it again, everything works fine.

It's like it's "sleeping".

I think it must have something to do with "recycling". I have set "Idle time-out" to 0 and Recycling "Regular time interval" to 0.

Before I browse my website, I take a look at "Worker process" and it says that the app pool process is running.

Any idea why my website "falls asleep"?

Thanks! Mojo


回答1:


Your ASP.NET pages are compiled the first time they are requested (see "Understanding ASP.NET Dynamic Compilation"). So this might be the issue why your first request takes so long.

To avoid that, you can precompile your ASP.NET application:

  • How to: Precompile ASP.NET Web Site Projects


来源:https://stackoverflow.com/questions/5050025/iis-7-5-initial-request-to-website-never-gets-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!