avinash
avinash

Reputation: 115

503 Service unavailable is not handle by any IIS error pages or ASP.net Error page

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

Answers (1)

Akshay Randive
Akshay Randive

Reputation: 384

You cannot customize Error page this for 503 because it occurs due to APP Pool crashing Check Here

Upvotes: 2

Related Questions