This project is read-only.


Web API - Link Web.Config custom errors and error detail policy


Deploying to IIS means that Web API applications have two settings for custom errors. One for the ASP.NET WebForms/MVC applications (web.config) and one for Web API. Having the ability to link the two would allow for one config-based setting to be used. See:

Closed Jul 26, 2012 at 6:23 PM by trdai


HongmeiG wrote Apr 23, 2012 at 6:08 PM

In the web host scenario, it would be good default our settings based on the CustomError settings from ASPNET.

raghuramn wrote Apr 24, 2012 at 9:43 PM

I am worried if we can access the settings in partial trust. I will verify.

raghuramn wrote Jun 4, 2012 at 7:30 PM

Fixed with changeset -

This change introduces a new IncludeErrorDetailPolicy (Default). If
IncludeErrorDetailPolicy is set to Default on HttpConfiguration we fall
back to the host specific behavior for showing error messages which is
1) defined by the ASP.NET CustomErrors configuration section for web
2) LocalOnly for self host.