Reputation: 115
I'm trying to go custom error when my error code is 503 but its not redirecting . for other code its working fine . But when I stop application pool I m getting 503 service unavailable error page. I want to redirect my customize error page. I tried with both ASP.NET error page as well as IIS Error page. its working for all other error code.
<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>
Upvotes: 1
Views: 3381
Reputation: 384
You cannot customize Error page this for 503 because it occurs due to APP Pool crashing Check Here
Upvotes: 2