?
Solved

default index.cfm document not loading includes

Posted on 2015-02-11
8
Medium Priority
?
174 Views
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 (http://mydomain.org/) 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 (http://mydomain.org/index.cfm) the includes load.  This is not a problem when the default document is an html file, index.html loads the includes either way.
0
Comment
Question by:muellertj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 39

Expert Comment

by:gdemaria
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?
0
 

Author Comment

by:muellertj
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.
0
 
LVL 6

Expert Comment

by:rjohnsonjr
ID: 40604722
When you view source when the default page loads.. Do you see strictly html or is it showing cf code too?
0
Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

 

Author Comment

by:muellertj
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
0
 
LVL 6

Expert Comment

by:rjohnsonjr
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...
0
 
LVL 39

Assisted Solution

by:gdemaria
gdemaria earned 400 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.
0
 

Accepted Solution

by:
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."
0
 

Author Closing Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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