RubbleFord
RubbleFord

Reputation: 7646

Global.asax And Unhandled Exceptions

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

Answers (1)

Michael Maddox
Michael Maddox

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

Related Questions