After uploading an asp.net mvc application to web server, now getting error msg from exception screen.
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This < customErrors > tag should then have its "mode" attribute set to "Off".
The same application we have been using on other server and it's working fine.
We have checked all of web.config
with old versions. Everything is correct also it's working on other server.
On error we want to just return same view with error label set with msg as we provided, but we are getting custom error page -showing runtime error ...server error / application.
Also we did not wanted to redirect to custom error page, so we maintained CustomErrorMode ="Off" which was from long time we were using.