This is my first time working with HttpModules. I need to create a "drag and drop" sort of solution into existing ASP.NET applications that will provide common error handling by redirecting the users to a new "ErrorFeedback.aspx
" page. So, when an app encounters an exception, the user will be redirected to ErrorFeedback.aspx
where they'll be able to provide feedback surrounding the error, if they need to. We have around 300 web apps currently so the "drag and drop" solution that seems most promising is an HttpModule
. This ErrorFeedback page will be a new page that will also be added to the solution as well. Eventually these components (the DLL and the custom web page) will wind up in a Nuget package, but for the time being it will need to be manually copied/pasted into the existing solution.
I've heard that doing a redirect within the module is bad practice. What's the best practice for redirecting a user to a specific page whenever OnError
in the HttpModule
is encountered?