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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -