I have been tasked with creating a sort of global error handling solution, so I'm creating an
Your HttpModule will only get those exceptions that are not caught by the application, as is clearly stated in the documentation
If the code that throws an exception is inside a
try...catch block, there is no exception to be propagated to the global error handler.
If you handle the exception and want to supress the default ASP.NET error message you can do so with the
If you really want to know about all exceptions, you can use the
FirstChanceException event on the
AppDomain to get notify directly when the exception is caught. Not however that you will probably catch way more exceptions than you expect that way - many exceptions are thrown and gracefully handled within the framework.