default index.cfm document not loading includes

Posted on 2015-02-11
Last Modified: 2015-02-17
I have a ColdFusion 11 and IIS 7.5 running on Windows 2008 R2 server.  When I load a page ( using the default docment, index.cfm, the page loads but does not display the includes.  If I go to the same page using the full url ( the includes load.  This is not a problem when the default document is an html file, index.html loads the includes either way.
Question by:muellertj
  • 4
  • 2
  • 2
LVL 39

Expert Comment

ID: 40604540
when you say it doesn't load the includes, do you mean you have a <CFINCLUDE> tag and the contents of that are not included in the display?   And no error message?   Did you try just putting  <h1>Hello World</h1> inside the top of the include with a CFEXIT to see if it opens the file at all?

Author Comment

ID: 40604565
Yes, I have a <cfinclude> tag and the contents do not display when I load the page as the default document. They do load when I load the page using the file name as part of the url.   I do not get any error messages.  I have not tried editing the include files because they load fine when I use the full URL. I think this must be an IIS/CF configuration issue.

Expert Comment

ID: 40604722
When you view source when the default page loads.. Do you see strictly html or is it showing cf code too?

Author Comment

ID: 40604728
when I view it as the default document I see <cfinclude template="includes/header.html">

when I view it as the full url I see the the <cfinclude> content
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.


Expert Comment

ID: 40604730
Yea that is what I figured.

I am not sure of the answer just yet.  I need to research but what is happening is iis is not handing off to CF when you do not specify the file name... it is just processing the document as an html file... proven by the fact that you see cf code when viewing source...
LVL 39

Assisted Solution

gdemaria earned 100 total points
ID: 40604946
Oh!   It's not processing ANY coldfusion code, not just the CFINCLUDE.... none of the Coldfusion code is getting processed!

You need to go into IIS and designate / to be processed by Coldfusion.   I contacted Adobe support for Coldfusion on the adobe website and they helped me no charge.   I selected Installation Issue on the support form.    Sorry I wish I could remember how it was fixed exactly, but I am pretty sure it was in IIS.

Accepted Solution

muellertj earned 0 total points
ID: 40606668
IIS was definitely at fault.  After some searching I checked the Handler Mappings for my website.  I must have changed the cfmHandler for .cfm at some point because the Entry Type was set to Local instead of Inherited.  Everything works after setting it to "revert to parent."

Author Closing Comment

ID: 40613832
I was set on the right track gdemaria but ultimately I found the answer on my own.

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Website URL redirection 10 53
Problem to go to Web page 2 52
IIS 7.5 to 8.0 6 75
Allow Local User to Log On FTP 8 34
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now