Skip to main content
Participant
December 13, 2006
Answered

CreateObject

  • December 13, 2006
  • 3 replies
  • 355 views
I have folders 'Model' and 'View' at the root folder of my application. And in 'Model' folder I have test.cfc. When I am creating the instance in of 'test.cfc' in file1.cfm which is at root folder like
<cfscript>
obj_test = createObject("component","model.test");
</cfscript>
its functioning, but if I do the same in file2.cfm which is in 'view' folder, its showing " Could not find the ColdFusion Component"
The strange thing is its perfectly working at my local machine with the same folder structure but not in the testing server!!! Anyone can help???
This topic has been closed for replies.
Correct answer NeoSadikh
Yeah the mapping was making the problem, in testing maching there was a mapping for "/" to the wwwroot. So as I did the necessary chages its functioning, thanks to Scott and Dan.

3 replies

NeoSadikhAuthorCorrect answer
Participant
December 13, 2006
Yeah the mapping was making the problem, in testing maching there was a mapping for "/" to the wwwroot. So as I did the necessary chages its functioning, thanks to Scott and Dan.
Inspiring
December 13, 2006
cfc's are much like custom tags in that one of the places to put the files is the directory you specify as the CF Administrator. What has been specified on the two machines in question?
Participating Frequently
December 13, 2006
Do you have a ColdFusion mapping named 'View' on the testing server?