CF Install, Mapping and Errors

Posted on 2003-03-03
Medium Priority
Last Modified: 2013-12-24
I am having some major issues with my CF installation.  I have CF installed on a Windows NT 4 platform with SP6a installed (IIS 4.0 running server).  I am using Dreamweaver on another computer to develop the site and upload to the server via FTP.

The specific problem that i am having is I have created a template that serves as the header for all of my pages.  I use the <cfinclude> to get the template into all the other pages.  When I try to preview the page, the browser jams and acts like its caught in a perpetual download loop.  The weird thing is that when I first created the site in Dreamweaver it worked for a few times and then suddenly it doesn't.

I have tried everything I know to do even reformat the NT server and start from scratch with everything.  I checked the error log and the message I got was something about Mapping.

Anyone got any suggestions or help?
Question by:skibama1
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
LVL 17

Expert Comment

ID: 8056623
chk for nested includes - ie file within the file !

chk if the directory mappings r created properly in IIS/PWS


Expert Comment

ID: 8057289
you need a ColdFusion Mapping.

Open ColdFusion Administrator and choose the mappings link fromt the left.

Type the name you wish to use for the mapping in the logical path box. Something like the name of the application is normally a good choice. The format is "/mappingname/"

Type the full path to the directory containing the header and footer files in to the directory path box.

Click add mapping.

You can now access the directory containing the header and footer files as follows:

<CFINCLUDE Template="/mappingname/header.cfm">


Expert Comment

ID: 8057378
If your pages used to load and now they don't, it seems like your problem would be a coding error.  Can you create a file with just "hello" in it and load it from the same directory your having the problems in?

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.


Author Comment

ID: 8062172
A new mapping did not solve the problem.  A new file did not solve the problem.  I even installed CF on a local machine to test as localhost.

It's really weird.  Only the image files are excluded from the preview.  It's like it gets hung.  All of the other info is complete in loading the page.  Even viewing the source results in a complete set of HTML code.

Author Comment

ID: 8062180
Is there a trick to where the <cfinclude> tag should go and how the page is rendered?  Should I start the header page with


etc.?  And end it with no closing tags?

Accepted Solution

skibama1 earned 0 total points
ID: 8062246

Because the images had a relative path in terms of the header file, the index file at the root did not see the files.

Thanks to all your help!
LVL 17

Expert Comment

ID: 8062264

theres nothing wrong with the HTML - that u r having ... the html tags shldnt cause the problem - i guess its the CF code u have in there is what needs to be checked.

did u chk the mapping of ur dir in IIS/PWS ???

if things r fine there & the files that ur trying to include r in ur root folder- then u do not necessarily need to have CFmappings - [u can have them if u want to - but then make sure - ur using them the right way]

if u can paste a eg of ur code - we can analyse & tell u where u may be going wrong

let me know


Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

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