• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Displaying CFM errors in IIS instead of IIS generic errors

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.

Thanks
0
istomtom
Asked:
istomtom
1 Solution
 
anandkpCommented:
hi,
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 ?

K'Rgds
Anand
0
 
istomtomAuthor Commented:
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.
0
 
fmediaCommented:
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

regards,
idss
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
cdillonCommented:
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.
0
 
anandkpCommented:
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

K'Rgds
Anand
0
 
istomtomAuthor Commented:
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. "
0
 
istomtomAuthor Commented:
Well, no one really answered this question so i'm just going to give the points to anand so this becomes a PAQ.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now