Enable Detailed Errors

From Hostek.com Wiki
Revision as of 17:58, 4 July 2014 by Coryme (Talk | contribs)

Jump to: navigation, search

How to enable detailed errors (ColdFusion, Railo, .Net) on IIS 7+ (Windows 2008 and 2012)

  • Edit or create the file web.config within the folder in which detailed errors should be enabled.
  • Add the following:
      <httpErrors errorMode="Detailed" />

NOTE: If any of the above sections already exist in the web.config" file, edit the existing sections. Do not duplicate.

  • To re-enable custom errors (or non-detailed errors), update the web.config file changing the errorMode attribute from Detailed to Custom.

How do I enable / disable Robust Exception Information on my site?

To enable Robust Exception Information on a ColdFusion site, you will need to add the following to the top of your Application.cfc file:

<cfset this.enablerobustexception = true />

However, if the site is on a server with Robust Exception Information enabled, and you wish to disable Robust Exception Information, add this to the site's Application.cfc:

<cfset this.enablerobustexception = false />