Saeed Py Saeed Py - 1 year ago 150
ASP.NET (C#) Question

Web.config Custom Errors mode Conflict

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

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

Answer Source

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" />


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download