James,
In addition to the other comments:
Depending on the type of application you are creating, .NET has three
different global exception handlers.
For ASP.NET look at:
System.Web.HttpApplication.Error event
Normally placed in your Global.asax file.
For console applications look at:
System.AppDomain.UnhandledException event
Use AddHandler in your Sub Main.
For Windows Forms look at:
System.Windows.Forms.Application.ThreadException event
Use AddHandler in your Sub Main.
Hope this helps
Jay
"James Hancock" <~j****@darwinconsulting.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
I would like to have some way that if there is no error handling and an
exception is thrown in our application that it will do a last resort error
handling so that we can send information to support about the error.
Anyone have any ideas? I've tried putting a Try/catch around the
Application.run() command but it only works some of the time.
Thanks,
James Hancock