Skip to main content
WolfShade
Legend
March 28, 2011
Question

"The specified CFC cannot be found." It's RIGHT THERE!

  • March 28, 2011
  • 2 replies
  • 1064 views

Hello, everyone.

Working on an internal app, so I can't give links/urls to view anything.

CF Server 9 on IIS6.

I'm trying to populate a CFSELECT with bind="component.ltm.getLTMs()"

In the components directory, there is ltm.cfc; it contains two functions.  Both functions are just queries, nothing else.

Getting an error message that says "the specified CFC components.ltm cannot be found."

I've been Googling this topic for about two hours, and I see a LOT of posts on this subject, but not a single solution has worked, for me.

Any suggestions/ideas?

Thanks,

^_^

    This topic has been closed for replies.

    2 replies

    WolfShade
    WolfShadeAuthor
    Legend
    March 29, 2011

    Forgot to mark as answered with my last post. Sorry.

    Inspiring
    March 28, 2011

    To troubleshoot, first try to access the component with a cfobject tag or createobject function.

    Next, try to run your function from the object you created.

    If you can do both of those, the problem is in the your cfselect tag somewhere.

    WolfShade
    WolfShadeAuthor
    Legend
    March 28, 2011

    Tried a cfinvoke, and it worked, so it's just the bind= that isn't working.

    The mapping can't be off, or the cfinvoke would not have worked.  Unless bind uses a different mapping.

    The CFSELECT is:

    <cfselect
        name="LTM_NAME"
        bind = "cfc:components.LTM.getLTMs()"
        bindonload = "yes"
        selected="#queryname.ltm_name#">
    </cfselect>

    ^_^

    Inspiring
    March 28, 2011

    The mapping can't be off, or the cfinvoke would not have worked.  Unless bind uses a different mapping.

    A CFC called by a bind expression won't know about any *CF* mappings because the call is made via an HTTP request, not an internal CF call.

    So your CFC will need to be browseable as /components/LTM.cfc.

    Also, are your methods set to have access="remote" ?

    --

    Adam