Saeed Py Saeed Py - 2 days ago 6
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 asp.net 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

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

Comments