IIS 6 & 7 - change the default message that is displayed when an application pool is stopped
i would like to change the default message that is displayed when an application开发者_运维知识库 pool is stopped in IIS 6, currently the default message is "Service Unavailable". i would like to change it to "The Web Application is currently being upgraded" and also include an image.
please will someone kindly assist with this?
thanks,
best muzi
503 Error comes from HTTP.SYS so you cannot change it from IIS.
If you are stopping the application pool during update of your ASP.NET website, best way would be to add a file called App_Offline.htm in the root folder with whatever you want to show users when application is offline.
ASP.NET runtime would redirect requests to this file if it's found in the website folder. So once you are done, you can just rename this file.
This link also might help since it's related. http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx
Unfortunately, you can't change the HTTP 503 Error page displayed when the AppPool is stopped.
The following errors are not customizable: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.
(emphasis added)
精彩评论