Click here to Skip to main content
15,917,321 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need to redirect to error page when my asp.net web app is down. Please help me for how to track my site is down or not.
Posted

1 solution

When your site is down - it's down. So you can not handle anything with code that part of your site.
If you are lucky IIS still running (only your site is down) so you can use the feature it has to display custom error pages...
Google for 'custom error page in IIS' and read...
 
Share this answer
 
Comments
josh-jw 1-Jul-14 2:36am    
is it possible to handle in web config ?
Kornfeld Eliyahu Peter 1-Jul-14 3:24am    
Not of your site - remember your site is down!!!
You can use a higher level web.config if there is and you can access it...
josh-jw 1-Jul-14 4:28am    
if higher level web.config is there, then how we can handle this task?
josh-jw 1-Jul-14 4:28am    
if higher level web.config is there, then how we can handle this task?
Kornfeld Eliyahu Peter 1-Jul-14 7:01am    
Read here - http://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900