Displaying CFM errors in IIS instead of IIS generic errors

Posted on 2003-02-21
Medium Priority
Last Modified: 2013-12-24
I just had coldfusion installed on my new colocated machine. What I am trying to accomplish is having IIS display the coldfusion error code I'm used to seeing instead of the generic "Internal Server Error" code that IIS wants to display.

Question by:istomtom
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Expert Comment

ID: 7994408
u have certain pages for the error numbers set as default errror handlers in IIS

u cld go to the IIS & change these - if required to suit ur need / use CFerror to handle the errors as well / set up global error file in CFADMIN.

is that what u want ?


Author Comment

ID: 7994452
Well, on my old shared hosting platform, everytime I had a CF error it just displayed it in the browser. I don't need any specific error handling, I just need the errors to be displayed in the browser window instead of the default IIS error.

Expert Comment

ID: 7994577
yes that happens sometimes but it's very rare, if you constantly get 500 code error, there might be something wrong either in IIS or coldfusion, just check te logs to be sure ...

you can also create a template where that problem will occur and then try to use the cferror tag in the Application.cfm, then check if that happens again

you might want to check your browser settings, sometimes when you get an error, the browser could "hide" it if you have the "show friendly error messages" - or whatever - setting on

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.


Expert Comment

ID: 7994854
You can set IIS to use any page you want by starting the Internet Service Manager, then find the default website or whatever site you are using. Then right click on that site and choose properties.  There is a tab called "custom errors", go to that tab and look for the 500 error in the list.  Then modify it to display any cfm page you want.
LVL 17

Accepted Solution

anandkp earned 100 total points
ID: 8006474
cdillon - thats exactly a replica of my comment - but looks like "istomtom" wants something diff here.

what version of Cf r u using - chk up with the debuggin option in CFADMIN


Author Comment

ID: 8296061
OK, I finally found what I've been looking for. Stupid Stupid Stupid!. It's hard to believe that Macromedia hasn't made this information more readily available. They stuck it away in a documentation update they've posted online here: http://www.macromedia.com/v1/documents/cf50/cf5_update.htm

After trying many things I finally found this and it worked. Apparently coldfusion sends a 500 (internal server error) status code in the http header by default. IIS interprets this and spits out it's default 500 error page and there's now way around this other than to change something in the registry. To turn this sending of the 500 status code off in coldfusion you need to add a registry key and string value. See text below.

"If ColdFusion encounters an error while processing a page request, by default it returns a 500 (Internal Server error) status code in the http header. This allows automated monitoring services using HTTP probes to detect ColdFusion-generated errors. To change this default behavior, add the registry entry key named HKEY_LOCAL_MACHINE/SOFTWARE/Allaire/ColdFusion/CurrentVersion/HTTP, and give it a string value of EnableHTTPStatus. Set its value to 0 to prevent ColdFusion from returning an http status code. "

Author Comment

ID: 8384151
Well, no one really answered this question so i'm just going to give the points to anand so this becomes a PAQ.

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question