Using c# code within a web application, I have a try catch statement in my code and within the catch I want to do several things such as email an administrator.
I am wondering what would happen if the email code or other code within the catch fails? Is there a way to handle a general exception in the application?
Description
There are 2 things you can do to catch unhandled exceptions.
Application.ThreadExceptionandAppDomain.CurrentDomain.UnhandledExceptionHandle a exception inside the catch block.
Sample
Application.ThreadExceptionandAppDomain.CurrentDomain.UnhandledExceptionHandle a exception inside the catch block.
More Information