views:

549

answers:

2

I need to send a Customized Error page for 503 Errors produced by my asp.net website. I have tried to simulate the condition by switching off the application pool (doesn't work) and by flooding my application with requests. Even though IIS sends me the default 503 error page, and even though I have tried setting a Custom URL in IIS and ASP.NET for this error code, it still returns me the default 503 error page !

I'd appreciate if someone could also tell me where the default 503 error page is kept that IIS sends.

+1  A: 

Take a look at HttpContext.Current.Response.TrySkipIisCustomErrors. just a suggestion.

Sky Sanders
Yes, i've tried this also. But this won't work when the app pool is switched off.
Binder
well, that is all i got for now. have less than zero desire to deal with IIS7 custom errors. I already fixed asp.net's 10 year old custom 403 error page bug once this year. http://www.codeproject.com/Articles/39062/Salient-Web-Security-AccessControlModule.aspx good luck..
Sky Sanders
exactly what i needed, awesome! cheers
Andrew Bullock
A: 
Filburt