I think you need to check your mappings in the CF Admin and in your webserver. Does your CF Admin have a / mapping that points to the approot folder? And are there two website entries for this, one for your regular app and one for the admin app? Or are they sharing the same website entry and you get to the admin by going to http://foo.com/admin/ ?
My guess is that you have one website entry and a CF mapping that points to your approot folder so what is happening is that you are providing a root relative path in your cfinvoke (a path that starts with / ) and then cf says "oh, / points at the approot folder, so lets start from there". If you are using CF8 and Application.cfc, you can define cf paths in the Application.cfc file and you could then tell your admin app that / is approot/admin/ and your /cfc/mycfc should then work. Otherwise you'll have to do the mappings in the CF Admin. Or, of course, just use /admin/cfc/mycfc Cheers, Judah On Thu, Nov 13, 2008 at 7:38 AM, Brian Dumbledore <[EMAIL PROTECTED]> wrote: > In my application folders hierarchy, where should my cfcs reside and what is > the path reference that I should use? > > I got into this strange scenario: > approot/ > approot/admin > > app and adminapp are two different applications cfwise, adminapp is just the > admin section of the main 'app', so it resides as a folder within the approot > folder. > > app names in application.cfm are both named different. > > I have approot/admin/cfc/mycfc.cfc > I have approot/admin/f1/testcfc.cfm > > Nothing worked until I said <cfinvoke component="/admin/cfc/mycfc"..> > > None of the other relative paths etc worked. I am stumped as to why I need to > 'act' like my app root is approot, when my app root is actually > /approot/admin ? > > Should it not have worked if I just said <cfinvoke component="/cfc/mycfc"..??? > > Any comments/suggestions??? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315215 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

