If I have an error in my ColdFusion script, I'm getting a 500 error message from IIS instead of ColdFusion. This only happens if I provide the file name in the URL and does not happen if I open the URL without the script name (which would open index.cfm).
For example:
- IIS error: http://www.example.com/index.cfm
- IIS error: http://www.example.com/foobar.cfm
- Coldfusion error: http://www.example.com/
I can reproduce this problem on 2 of my 3 ColdFusion platforms:
- Working: IIS 7.5 with ColdFusion 10 Update 12 (with updated connector)
- Not Working: IIS 8 with ColdFusion 10 Update 12 (with updated connector)
- Not Working: IIS 8.5 with ColdFusion 11
My index.cfm & foobar.cfm:
<!--- provoke a coldfusion error --->
<cfset foo
My web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
For me it looks like there's a problem with the ColdFusion connector with IIS 8 and IIS 8.5.