Hi,

After moving a site to a new sever I start receiving errors:
Could not find the included template /utils/lib.cfm. Note: If you wish
to use an absolute template path (for example,
template="/mypath/index.cfm") with CFINCLUDE, you must create a
mapping for the path using the ColdFusion Administrator. Or, you can
use per-application settings to specify mappings specific to this
application by specifying a mappings struct to THIS.mappings in
Application.cfc.

I have set up the mappings in the application.cfc like:
this.name = listLast (getDirectoryFromPath (getCurrentTemplatePath ()), "\");
this.mappings["/"&this.name] = getDirectoryFromPath(getCurrentTemplatePath());

the application structure is like this :
myApp
   utils
        lib.cfm
   views
       subModule
            user.cfm

and it's deployed like this:
webRoot
     myApp

on my dev box I have set it up so the webroot points to myApp and it's
working fin

It's also working fine (in both environments) if I use relative path.

Any idea how to set it up so it will work in both environments with
absolute path?

Thanks
Victor
PS environment CF9.01 and Windows Server 2003, IIS

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to