IIS 7.5:从未加载对网站的初始请求 [英] IIS 7.5: Initial request to website never gets loaded

查看:66
本文介绍了IIS 7.5:从未加载对网站的初始请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我第一次浏览我的网站时,互联网一直在旋转/加载.如果我两秒钟后尝试再次加载,一切正常.

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

这就像在睡觉".

我认为它必须与回收"有关.我已将空闲超时"设置为0,并将常规时间间隔"设置为0.

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.

在浏览网站之前,我先看一下"Worker进程",它表示应用程序池进程正在运行.

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"?

谢谢! 莫霍(Mojo)

Thanks! Mojo

推荐答案

您的ASP.NET页是在首次请求时进行编译的(请参见).因此,这可能就是为什么您的第一个请求要花这么长时间的问题.

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.

为避免这种情况,您可以预编译ASP.NET应用程序:

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

这篇关于IIS 7.5:从未加载对网站的初始请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆