Skip to main content
Participant
May 29, 2014 1:15 PM UTC
Question

The specified CFC could not be found


We had our own server working with an app. We started hosting with a different provider and now we are getting the above-mentioned error.


On the same page, this works:


<cfset compTest = createObject("component", "components.search")>
<cfset result = compTest.search(1,10,1,"desc","")>
<cfdump var="#result#">

But this one does not

<cfform name="searchResultGridForm">
<cfgrid
name="searchResultGrid"
bindOnLoad="true"
bind="cfc:components.search.search({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{searchedWord@keyup})"
format="html"
selectMode="Row"
selectOnLoad="false"
width="790"
height="290"
colHeaderAlign="Center"
stripeRows="true"
pagesize="10">
<cfgridcolumn name="fileColor" header="Priority" width="50">
<cfgridcolumn name="idFile" header="ID" width="40">
<cfgridcolumn name="firstName" header="First Name" width="80">
<cfgridcolumn name="lastName" header="Last Name" width="80">
<cfgridcolumn name="email" header="Email" width="100">
<cfgridcolumn name="nextImportantDate" header="Next Important Date" width="70">
<cfgridcolumn name="statusName" header="Status" width="100">
<cfgridcolumn name="historyLastInsert" header="Last Note" width="100">
<cfgridcolumn name="fileAssignedTo" header="Assigned to" width="90">
<cfgridcolumn name="edit" header="Actions" width="60" dataAlign="Center">
</cfgrid>
</cfform>


We can't figure out why could that be. We keep getting the error mentioned on the title. Your help would be greatly appreciated

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Participant
May 29, 2014 3:08 PM UTC

I just found out that if I move the components from the components folder into the root of the application, it works. WHY? no idea

Translate
BKBK
Community Expert
Community Expert
May 29, 2014 3:55 PM UTC

OK. Curious. What if you, just for laughs, temporarily change the name of the CFC from search to, say, searchCFC?

Translate
BKBK
Community Expert
Community Expert
May 29, 2014 2:12 PM UTC

The error message might be misleading. First, the code is slightly incorrect. The field searchedWord is undefined.

As a first test, include the text field searchedWord in the form, and set bindOnload="false". Any joy?

Translate
Participant
May 29, 2014 2:39 PM UTC

The searchedWord is defined before on a pice of code that I did not copy, but it arrives correctly. The object being manually created works fine and also when we hardcode the parameters. I am convinced now that the code is fine.

We tried with a test function too that has no parameters in the same object and in different objects and none of the bindings work. When created manually they do work.

The bindOnload=false made no difference

Translate
BKBK
Community Expert
Community Expert
May 29, 2014 4:28 PM UTC

I have tested by creating a directory and CFC path identical to yours. I have been unable to reproduce the issue on Coldfusion 10 and 11. What is your version?

Translate