0

我正在尝试从另一个代码文件调用组件并遇到问题。

这是我尝试过的。

<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. 

我也尝试过使用 Adob​​e 文档中演示的 # 符号。cfc.FileMove 格式在应用程序的其他位置使用,但在此文件中失败,并且日志中没有给出错误。

我正在使用的文件位于 C:\inetpub\wwwroot\dev\adminFiles CFC 位于 C:\inetpub\wwwroot\dev\cfc。根据最后使用它的人的说法,cfc 映射到 CF 服务器中。我不明白当我<cfinvoke>像在测试机器上那样成功地运行 a 时,它在应用程序中如何失败。

4

0 回答 0