Difference between revisions of "Enable Detailed Errors"

From Hostek.com Wiki
Jump to: navigation, search
m
Line 13: Line 13:
  
 
*To re-enable custom errors (or non-detailed errors), update the '''web.config''' file changing the '''errorMode''' attribute from '''Detailed''' to '''Custom'''.
 
*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:
 +
<pre><cfset this.enablerobustexception = true /></pre><br />
 +
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:
 +
<pre><cfset this.enablerobustexception = false /></pre>
 +
  
 
[[Category:Windows]]
 
[[Category:Windows]]
 
[[Category:ColdFusion]]
 
[[Category:ColdFusion]]
 
[[Category:Railo]]
 
[[Category:Railo]]

Revision as of 22:58, 4 July 2014

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:
<configuration>
   <system.webServer>
      <httpErrors errorMode="Detailed" />
   </system.webServer>
</configuration>

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