Reputation: 7646
I've got some code that is logging unhandled exceptions in the global.asax. Whenever an error occurs I get the error I write to the eventlog correctly and then the same exception written again as unhandled. Have missed something simple?
Upvotes: 0
Views: 368
Reputation: 12489
After you log the exception, you should call
Server.ClearError();
If you want the exception to be treated as "Handled".
Remember this isn't a normal catch block and special rules apply.
Upvotes: 2