Hi,

I've got a CMFX installation under IIS that is
driving me a little crazy with CFCs. I've been using
CFCs on a local CFMX standalone server that works
fine with the absolute namespace addresses.

For example:

 mydomain.com\com\macromedia\test\HelloWorld.cfc

I have a simple CFM page that calls the above cfc, but living in the
same directory.

 http://mydomain.com/com/macromedia/test/test.cfm

This works fine. *BUT* ...

I have the same code, but living in a different directory. I want to
address the same CFC, via the absolute notation, as per the MM docs.
The same page is here, with a minor change to the namespace param like so:

<cfoutput>
        <cfinvoke component="com.macromedia.test.HelloWorld" 
                method="sayHello" 
                returnVariable="message" />
        Server time: #message#
</cfoutput>

Locally under port 8500 works fine. Under IIS 5.0 online, this gets 
me the error:

  Could not find the template com.macromedia.test.helloworld 

And if I try to hit the CFC directly via http, like:

  http://mydomain.com/com/macromedia/test/HelloWorld.cfc

It gives me a 404. The cfc_explorer isn't invoked. I read on the 
MM webforums that mapping to the CFIDE can help fix
problems like this, so we've created this mapping under IIS, but 
still no dice.

I've also tried to create a mapping using the CF administrator,
but CFMX can't find the cfc using the custom mapped directory either.

The weird thing is that it works for Flash Remoting calling the
same CFC using the absolute name spacing scheme. But it doesn't work when
I use it within a CFM.

For example,

  http://mydomain.com/flash_remoting_test/index.htm

calling the same CFC from within Flash, using the same absolute namespace
like "com.macromedia.test.helloworld" works fine.

I'm also concerned that mapping the CFIDE to my public website is
just asking for trouble.

Has anyone encountered similar problems with suggestions to fix this,
and can someone provide comments on the security issues to do with
mapping CFIDE onto a public domain (seems like a dodgy fix to me.)

Many thanks for the advice,

- Ian
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to