The Configuration.IncludeErrorDetailPolicy is only configurable through codes. It feels nature if we can switch it by change configuration in web.config.
Comments: In the web host scenario, by default we are honoring the CustomErrors flag. Does that not reading the debug=true setting? if (request.Properties.TryGetValue<Lazy<bool>>(HttpPropertyKeys.IncludeErrorDetailKey, out includeErrorDetail)) { // If we are on webhost and the user hasn't changed the IncludeErrorDetailPolicy // look up into the ASP.NET CustomErrors property else default to LocalOnly. return includeErrorDetail.Value; }
Comments: In the web host scenario, by default we are honoring the CustomErrors flag. Does that not reading the debug=true setting? if (request.Properties.TryGetValue<Lazy<bool>>(HttpPropertyKeys.IncludeErrorDetailKey, out includeErrorDetail)) { // If we are on webhost and the user hasn't changed the IncludeErrorDetailPolicy // look up into the ASP.NET CustomErrors property else default to LocalOnly. return includeErrorDetail.Value; }