简体   繁体   English

IIS 7.5应用程序初始化(预热)模块因Web应用程序不在端口80上而失败

[英]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.

相关问题 使用HttpClient时,IIS 7.5 Web应用程序返回未授权 - IIS 7.5 Web Application returns Unauthorized when using HttpClient 在IIS 7.5(Windows 2008 R2)上部署Web应用程序 - Deploying a Web Application on IIS 7.5 (Windows 2008 R2) 设置应用程序池iis express 7.5用于应用程序 - Set application pool iis express 7.5 for application 从IIS 7.5在Chrome中运行MVC应用程序 - Run MVC Application in Chrome from IIS 7.5 mvc 4 + iis7.5应用程序停止 - mvc 4 + iis7.5 application stop 如何在IIS 7.5上添加Application not website? - How to add Application not website on IIS 7.5? 从.NET Web应用程序(MVC 3)自动绑定到IIS 7.5中的自定义域 - Automatically binding to custom domains in IIS 7.5 from .NET Web Application (MVC 3) 使用IIS 10.0和WebAPI进行IIS应用程序初始化 - IIS Application Initialization with IIS 10.0 and WebAPI 在默认网站(端口80)下同时作为新网站(端口xxxx)托管ASP Web应用程序的最佳方法是什么? - What is the best way to host asp web application under Default Web Site (port 80) AND as new website (port xxxx) at the same time? 无法启动 IIS Express Web 服务器 - 端口“80”正在使用中 - Unable to launch IIS Express Web server - Port '80' is in use
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM