【问题标题】:503 Service unavailable is not handle by any IIS error pages or ASP.net Error page503 服务不可用没有被任何 IIS 错误页面或 ASP.net 错误页面处理
【发布时间】:2015-02-17 00:23:52
【问题描述】:

当我的错误代码为 503 但未重定向时,我正在尝试自定义错误。对于其他代码,它工作正常。但是当我停止应用程序池时,我得到 503 服务不可用错误页面。我想重定向我的自定义错误页面。我尝试了 ASP.NET 错误页面和 IIS 错误页面。它适用于所有其他错误代码。

 <httpErrors errorMode="Custom" existingResponse="Replace">
  <remove statusCode="404" subStatusCode="-1" />
  <remove statusCode="503" subStatusCode="-1" />
  <error statusCode="503" prefixLanguageFilePath="" path="http://www.google.com" responseMode="Redirect" />
  <error statusCode="404" prefixLanguageFilePath="" path="http://www.google.com" responseMode="Redirect" />
</httpErrors>

【问题讨论】:

    标签: asp.net iis-7.5


    【解决方案1】:

    您无法为 503 自定义错误页面,因为它是由于 APP Pool 崩溃Check Here而发生的@

    【讨论】:

    • 根据我尝试使用经典 asp 页面或 html 页面而不是 aspx 的答案,我仍然无法继续自定义页面
    • 目前还很少有解决方法Click here
    猜你喜欢
    • 2014-05-14
    • 2021-06-16
    • 2011-07-22
    • 2017-03-26
    • 2014-04-01
    • 1970-01-01
    • 2011-02-15
    • 1970-01-01
    • 2017-08-27
    相关资源
    最近更新 更多