Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ColdFusion and getting "Internal Server Error" instead of ColdFusion error page [duplicate]

I'm using IIS7 with Windows Server2008 R2. I have ColdFusion 11 set up and running. Everything seems to work fine except whenever I have a coldfusion error, I get an error message from IIS instead of ColdFusion. I get the generic 500 - Internal Server Error instead of the ColdFusion page telling me what is wrong.

This is a new installation on an empty server. Nothing else is running on this machine and nothing else has been loaded.

In the ColdFusion Administrator I have the check boxes for "Enable Robust Exception Information" and "Enable Request Debugging Output" checked.

If there are no errors on the page, the page works fine. Its just hard to debug when I can't see what's wrong if there is a typo or something.

Thanks.

like image 250
John Avatar asked Aug 05 '14 21:08

John


1 Answers

Check your "enable http status codes" setting under server settings > settings in the CF administrator. http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc.html

When CF sets a 500 status code on error IIS sees this and responds with its error page.

While unchecking this option will technically solve your issue the real solution would be to modify IIS' settings so that it serves up your desired error page. You shouldn't be sending coldfusion's error pages to users on a production site.

like image 100
Sean Coyne Avatar answered Jan 17 '23 14:01

Sean Coyne