Issue with invoking a Coldfusion Component

72 views Asked by At

I'm trying to invoke a component from another code file and running into a problem.

This is what I have tried.

<cfinvoke component="cfc.FileMove" method="transferFile" >
This causes the page to fail. 

<cfset beginMove = CreateObject('component', 'cfc.FileMove')>
This approach fails here, but is used in other areas of the application. 

<cfinvoke component="FileMove" method="transferFile" >
This works, but obviously  because its located in the same folder as the file I'm invoking from. 

I've also tried using the # signs as demonstrated in the Adobe documentation. The cfc.FileMove format is used in other locations in the application but it fails in this file and no errors are given in the logs.

The file I'm working with is located at C:\inetpub\wwwroot\dev\adminFiles The CFC's are located at C:\inetpub\wwwroot\dev\cfc. According to the last person who worked with it, the cfc's are mapped in the CF server. I don't understand how when I simply run a <cfinvoke> as I do on my test machine with success, it fails in the application.

0

There are 0 answers