custom error pages - which one is better: CustomErrors in web.config or application_error? -


i'm trapping 404 errors in mvc website. have option either via adding customerrors element in web.config or application_error, don't know 1 better. difference between two?

i'd recommend use application_error approach. way can log 404'd request data, in way can generate future reports. afaik, if redirect request using web.config settings, lose info.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -