[英]IIS 7.5 Application Initialization (Warmup) Module fails for web application not on port 80
I'm using the Application Initialization module for IIS 7.5 on a Windows 2008 Server for a web site that's mapped to port 8080. After setting up the warmup module, I was able to get it to trigger Application_Start()
in Global.asax
, but not any of the pages I set up as initialization pages. 我正在Windows 2008 Server上针对映射到端口8080的网站使用IIS 7.5的应用程序初始化模块。设置了预热模块后,我能够在
Global.asax
获取它来触发Application_Start()
,但是不是我设置为初始化页面的任何页面。 When I added logging in Application_BeginRequest()
, it showed that the warmup module was calling the pages on localhost:80
instead of localhost:8080
. 当我在
Application_BeginRequest()
添加日志记录时,它表明预热模块正在localhost:80
而不是localhost:8080
上调用页面。 I tried using Server.TransferRequest
but that didn't work. 我尝试使用
Server.TransferRequest
但是没有用。 Response.Redirect shouldn't work since these are dummy requests and there is no client to respond to the redirect. Response.Redirect应该不起作用,因为这些请求是虚拟请求,并且没有客户端可以响应重定向。 I was also wondering how any of this mattered at all, the web application was sent the request, as evidenced by triggerring
Application_BeginRequest()
, but then why didn't it proceed to render any of my pages? 我还想知道这有什么关系,Web应用程序发送了请求,触发了
Application_BeginRequest()
证明了这一点,但是为什么它不继续呈现我的任何页面呢? Logging on Application_Error()
didn't show any errors on the requests to localhost:80
pages. 登录
Application_Error()
在对localhost:80
页面的请求中未显示任何错误。
Does anyone have an idea on what is causing this issue and how to fix it? 是否有人对导致此问题的原因以及如何解决有任何想法?
I asked this question on the IIS Forums , with no luck. 我在IIS论坛上问了这个问题,但是没有运气。 I gave up on the issue and instead opted to warm up my pages my creating calls to my pages with
HttpWebResponse
. 我放弃了这个问题,而是选择使用
HttpWebResponse
对页面的创建调用来预热页面。 It works well and gives the added benefit of allowing me to give credentials to the warmup requests (my website uses ASP.NET impersonation) which initialization pages does not allow me to do. 它运作良好,并带来了额外的好处,即允许我向预热请求提供凭据(我的网站使用ASP.NET模拟),初始化页面不允许我这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.