Where is the location of the .net error log

My application comes out for no reason, most likely due to errors in the profiler that I used because it interferes with all the CLR stuff. The problem is, is there any file anywhere where the .Net framework logs such errors?

+4
source share
2 answers

As David says, these errors go to the application log in the Windows event log.

If you are looking for a little more information at the end of your application, you can subscribe to the UnhandledException event. This way you will get an exception, since your application terminates, and you can check the exception in the debugger, or view the data in the file you selected, etc.

Note: you cannot "handle" the exception in the traditional sense, your application will die. However, it gives you the opportunity to get useful information along your path :)

+13
source

These errors are often displayed in the Windows event log (usually in the application log).

+6
source

All Articles