Skip to main content
Participating Frequently
January 2, 2018
Question

ColdFusion 2016 in IIS 10: HTTP Error 404.17 - Not Found

  • January 2, 2018
  • 1 reply
  • 3551 views

I have installed ColdFusion 2016 in IIS 10 and when I browse to http://localhost/mysite/ I get HTTP Error 404.17 - Not Found but when I browse to http://localhost/mysite/index.cfm it works just fine. It seems there is some confusion about the default documents being served as static files rather than dynamic files. This is supported by reading further details in the IIS error message:

HTTP Error 404.17 - Not Found

The requested content appears to be script and will not be served by the static file handler.

Most likely causes:

  • The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try:

  • If you want to serve this content as a static file, add an explicit MIME map.

Detailed Error Information:

Module   StaticFileModule
Notification   ExecuteRequestHandler
Handler   StaticFile
Error Code   0x80070032

Requested URL   http://localhost:80/mysite/index.cfm
Physical Path   C:\inetpub\wwwroot\mysite\index.cfm
Logon Method   Anonymous
Logon User   Anonymous

It seems that IIS knows that I want to serve index.cfm as the default document, but it's treating it as a static file rather than a dynamic file. Wondering if anyone has any ideas on how to fix this? Thanks.

This topic has been closed for replies.

1 reply

Priyank Shrivastava.
Inspiring
January 9, 2018

Hi,

Can you please check the default document and check what it set there. Also, remove the connector and add the individual connector for that specific website and then run the index page.

Thanks,

Priyank Shrivastava

Thanks, Priyank Shrivastava
Participating Frequently
January 12, 2018

Thanks for your response Priyank. The default document setting is below:

index.cfm

default.cfm

index.php

Default.htm

Default.asp

index.htm

index.html

iistart.htm

default.aspx

Regarding your suggestion to remove the connector and add it again, I used the ColdFusion 2016 setup program to install the IIS connector, so are you suggesting that I use the Web Server Configuration Tool to remove ColdFusion from IIS and then add it again?

Just to be clear, ColdFusion is working fine if I specifically browse to http://localhost/mysite/index.cfm, it's just that if I browse to http://localhost/mysite/ that it thinks the index.cfm page is static content.