【发布时间】: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>
【问题讨论】: