【发布时间】:2014-03-30 12:24:00
【问题描述】:
我在 iis 中为 503 错误创建了一个错误页面。现在我停止我的网站应用程序池。我的其他页面服务不可用,而不是我的自定义错误页面。我也尝试在 web.config 中进行配置。它不起作用,请帮助我..
试过1次
<httpErrors errorMode="Custom">
<remove statusCode="503" subStatusCode="-1" />
<error statusCode="503" prefixLanguageFilePath="" path="/503.htm"
responseMode="ExecuteURL" />
</httpErrors>
试了2次
<customErrors mode="On">
<error statusCode="503" redirect="~/503.htm"/>
</customErrors>
【问题讨论】:
-
你有503.htm这个页面吗?
-
我的项目中有那个文件
标签: c# asp.net iis iis-7.5 custom-error-pages