2

IIS 7.5 warm up (IProcessHostPreloadClient) is not working when application pool's Managed Pipeline Mode set to Classic, if the Managed Pipeline Mode set to integrated Mode it works fine.

Not sure if i have to do anything special for classic mode to work

I am following this url

http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx

4

1 回答 1

0

我们在 IIS 7.5 (Windows Server 2008 R2) 上遇到了同样的问题。在网站出现之前有大约 30 秒的延迟。我们还尝试通过 ScottGu 的博客解决它,但没有成功。所以我们安装了一个 cronjob 来执行 C# 代码并向网络服务器发出一个即发即弃的请求:

public static void WarmUp(string pUrl)
{
    var lWebClient = new WebClient();
    lWebClient.DownloadStringAsync(new Uri(pUrl , UriKind.Absolute));
}

执行预热:

WarmUp("http://hostname");

在那次通话 + 约​​ 30 秒后,我们的网站将直接出现在浏览器中。

于 2014-12-02T14:05:19.663 回答