I have a created a custom exception handler to handle all unhandled exceptions in MVC application and logging error details in database.
The problem is -it logs the exception but also redirects to Error page.
I want user to stay on the same view whenever error comes and some generic message should be displayed to the user like 'Error while saving data'.
I have removed defaultRedirect="Error" from below setting but still it redirects
How to achieve this functionality.

Shakti Singh DulawatRank #668 · 3.6K reputationPosted May 17, 2016, 3:31 AM EDT
Ravi PatelRank #439 · 5.7K reputationPosted May 17, 2016, 5:39 AM EDT