Skip to main content
Inspiring
February 27, 2012
Answered

ColdFusion 9 mapping seems not being processed

  • February 27, 2012
  • 1 reply
  • 1259 views

I installed ColdFusion 9 with IIS 6 on Windows 2003 Server.  The web root directory is  c:\MyWeb. 

I created a ColdFusion mapping in the CF Administrator for /dbx, and points to c:\ColdFusion9\Template.  Under the Template directory, I have several sub-directories, Cat1, Cat2, ....

When I accessing http://myweb.com/dbx/Cat2/getcat.cfm, ColdFusion threw the following error.

File not found: /dbx/Cat2/getcat.cfm

The exception.log shows

"Eror", "jrpp-2", "02/27/12", "15:17:32",,"File not found" /dbx/Cat2/getcat.cfm The specific sequence of files included or processed is: C:\MyWeb\dbx\Cat2\getcat.cfm'' " ColdFusion.runtime.TemplateNotFoundException: File not found: /dbx/Cat2/getcat.cfm

The getcat.cfm is present, and it is under c:\ColdFusion9\Template\Cat2\.

It seems like ColdFusion is not handling the mapped /dbx/Cat2/getcat.cfm, and passed it to the web server.  IIS is looking for the /dbx/Cat2/getcat.cfm under its web root, and obviously can't find it. 

Any pointers are greatly appreeciated.

Joe

    This topic has been closed for replies.
    Correct answer Dave Watts

    CF mappings only affect CF tags, like CFINCLUDE, CFMODULE, etc. They don't create mappings that your web server will recognize. You need to create virtual directories in your web server for those.

    Dave Watts, CTO, Fig Leaf Software

    1 reply

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    February 27, 2012

    CF mappings only affect CF tags, like CFINCLUDE, CFMODULE, etc. They don't create mappings that your web server will recognize. You need to create virtual directories in your web server for those.

    Dave Watts, CTO, Fig Leaf Software

    Dave Watts, Eidolon LLC
    RottieAuthor
    Inspiring
    February 28, 2012

    Dave,

       THANKS.

    Joe