Asp.net-mvc – Web.config Custom Errors mode Conflict

asp.netasp.net-mvcasp.net-mvc-3web.config

I have a great and important problem with Web.Config, I need to see the Error of my page and resolve it in asp.net web form and web config, but when Error Occurred, I see another error and I see this Message :

customErrors mode to Off or On Or RemoteOnly,

I set this property Off, but do not show error and say again please set attribute to On your CustomError.

enter image description here

enter image description here

when I set mode to On,say Please set customErrors mode to On Again.

enter image description here

enter image description here

Best Answer

When you're having issues with configuration, make sure that your settings isn't overridden.

In this case, your server might have a configuration <deployment retail="true" /> that overrides application settings and disables trace output, custom errors, and debug capabilities.

Change the value to "false"

<deployment retail="false" />

MSDN Link