Hello

I posted this about a year ago, but got it working on a server of ours - now on 
a new server, same problem, and cant figure out why.

Very simple:

We have multiple sites:

Site 1
Site 2
Site 3
Etc...

Each is in its own directory structure, has its own application.cfm, etc.

Each one has a virtual mapping in IIS to a directory called COMMON, that has 
some shared code. So within the IIS site for each site, there is a Virtual 
Directory mapping to this "Common" directory.

Now, in the directory for COMMON, we have coldfusion code that we want to be 
able to access the scoped variables (such as application, request, etc) of each 
individual site when called from that site.

So in the COMMON directory, there is an APPLICATION.CFM file that has one line:

<cfinclude template="/application.cfm">

This works flawless on one production server, but on another, we just get an 
error:


Could not find the included template /application.cfm.
Note: If you wish to use an absolute template path (e.g. 
TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for 
the path using the ColdFusion Administrator. Using relative paths (e.g. 
TEMPLATE="index.cfm" or TEMPLATE="../index.cfm") does not require the creation 
of any special mappings. It is therefore recommended that you use relative 
paths with CFINCLUDE whenever possible.

The error occurred in D:\hostedsites\clientsites\common\Application.cfm: line 2

1 :
2 : <cfinclude template="/application.cfm">
3 :


For my life, I cannot figure out why. On the server that DOES work, we have no 
special CUSTOM TAG PATHS, no MAPPINGS,.and it works joyfully - its only on this 
new server.

We are using CF version 7,0,2,142559 and IIS 5.0.

Help is needed and appreciated!

Thanks,

Ben 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277475
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to