[RESOLVED]httpmodule and customerrors

Hi,

i have MVC 5 website, i want to handle any unhandled exception thrown from my website.

What i have done: inject an httpmodule within the iis request pipeline and
customerrors tag does not exist in the web.config

my question:

1. does handling exception using httpmodule substitute the
customerrors
tag; which is an asp.net soln. for handling the unhandled exceptions within the website?

2. when i set the customerrors On, the
httpmodule
won’t get fired, is that correct?

Thanks in advance,

In MVC the custom errors are handled using filters. Please check the below blog on how to use filters. It also talks about custome error attribute

Exception or Error Handling and Logging in MVC4

Leave a Reply