How can I get my asp.net application to give me a message indicating the network is down? Can I test whatever code you give me by pulling the network cable out of the back of my PC or do I need to wait for a genuine outage?
I just realised that if the app is on the web server and the application on the user's machine can't connect to that web server then no ASP code will be executed. What about something on the user's machine or do you have any other suggestions?
Related to this, is there a way of detecting a failure to connect to the database and sending a proper excepction message?