Link to home
Start Free TrialLog in
Avatar of EPham
EPham

asked on

Template file not found

I have a multi-site web server. I installed Coldfusion 5.0 on Win2k and running IIS. Both sites have a virtual site with the same virtual name. Both these virtual sites are pointing to the same physical folder. I got one of the site working; but the other site is giving me the following error:

Error Occurred While Processing Request
Error Diagnostic Information
Template file not found.



HTTP/1.0 404 Object Not Found
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 while processing an element with a general identifier of (CFINCLUDE), occupying document position (5:1) to (5:50).


Date/Time: 08/10/02 16:58:53
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Remote Address: 68.99.72.104

Thanks,
Eric
Avatar of CFXPERT
CFXPERT

What does your <cfinclude> line look like.  Can we see your code?
Ok, you have 2 sites with a virtual site in each, pointing to the same directory. Do you have these sites running off of seperate IP addresses? If they are running on the same IP then you will need to use HOST HEADERS to route them correctly.

In IIS do the following if you are not using multiple IP's this will allow you to run multiple sites from 1 IP.

1. Open IIS and right click the web site to be configured.
2. For the IP, make sure it is set to unassigned.
3. Click advanced, and in the multiple identities for this website list and choose the identity you want to use.
4. Click edit and add the header information to the list.
5. Make sure this information is listed with whoever is providing your DNS info.
6. Restart IIS for the changes to take affect.


Doug
 
Avatar of EPham

ASKER

Thanks Doug for helping me.

I do have different host header on each site.
And when I ping the name of the site they do resolve to the right IP.

The include statement is as follow:
<cfinclude template"/osb/Application.cfm">
Ok

A question for you...Although you can do an include for your application.cfm, why are you? If you simply just place the application.cfm in your folder, then CF will find it. have you tried just doing it like so...

<cfinclude template="osb/application.cfm"> without the / in the beginning?


Doug
Avatar of EPham

ASKER

Dear Doug,
I've tried what you have suggested and it did not work.
Hi there,

make sure "osb" is a mapped virtual directory on ur Coldfusion server.

cos all includes need to start with virtual directories
OR
they can be relative paths ...

but in ur case ... make "OSB" a virtual directory on ur Coldfusion server.

let me know

K'Rgds
Anand
Avatar of EPham

ASKER

you mean make a mapping in the coldfusion administrator.
If that is what you mean, I have done that too.

thanks
Eric
ASKER CERTIFIED SOLUTION
Avatar of anandkp
anandkp
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EPham

ASKER

Thank you Anand. There were other <cfinclude> that that I have to map.

Eric
Hi Eric,

So I hope things R working for U ...

GR8 Going :) !!!

let me know - incase u need ne-thing.

K'Rgds,
Anand