Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the .net framework error log location

My application exits for no reason, most likely due to errors in the profiler I used because it interferes with all the CLR runtime stuff. The issue is is there any file at any location where .Net framework logs these kind of errors?

like image 751
Graviton Avatar asked Aug 25 '09 02:08

Graviton


2 Answers

As David says, these errors go to the Application Log in the Windows Event Log.

If you're looking for a bit more information as your application is terminating, you can subscribe to the UnhandledException event. That way you will get an exception as your app terminates, and you can inspect the exception in the debugger, or log details to a file of your choosing, etc.

Note: you cannot "handle" the exception in the traditional sense, your app will die. It does however give you an opportunity to get some useful information on your way out :)

like image 59
Nader Shirazie Avatar answered Oct 25 '22 18:10

Nader Shirazie


These errors will often show up in the Windows Event Log (usually in the Application log).

like image 42
David Avatar answered Oct 25 '22 19:10

David