1

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>
avinash
  • 115
  • 1
  • 7

1 Answers1

2

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

Community
  • 1
  • 1
Akshay Randive
  • 384
  • 2
  • 10
  • as per the answers I tried with classic asp page or html page and not with aspx still I'm not able to go on customize page – avinash Dec 18 '14 at 10:02
  • there are few work arounds yet [Click here](http://forums.asp.net/t/1946691.aspx?Throw+Response+status+503+but+yet+show+custom+error+page) – Akshay Randive Dec 18 '14 at 10:10