Go to All Forums

Catching Unhandled Exceptions for applications using in .NET framework

 

Hi

We are currently monitoring a process on a windows server.

 

This process does seem to end up in an Unhandled Exception sometimes. This is not caught by the above monitoring since the process is still running.

Is there any other way of catching these type of errors?

Regards,

Calle

Like (1) Reply
Replies (3)


Re: Re: Catching Unhandled Exceptions for applications using in .NET framework

IMHO it is not possible to monitor unless the application exits. Then "Windows Error Reporting" will maintain an event log entry for the crashed process. 

https://stackoverflow.com/questions/2309836/detecting-process-crash-in-net

It is better to handle these exceptions and/or terminate the process in the code itself using Appdomain's UnHandledException Event. 

https://stackoverflow.com/questions/1421597/avoid-program-stopped-working-in-c-net

 

Like (1) Edit Delete Reply

Re: Re: Re: Catching Unhandled Exceptions for applications using in .NET framework

OK thanks

 

Will look into the possibility to add some exception handlers instead

/Calle

Like (0) Reply

Was this post helpful?