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. 

また、Adobe のドキュメントに示されている # 記号を使用してみました。アプリケーションの他の場所では cfc.FileMove 形式が使用されていますが、このファイルでは失敗し、ログにはエラーが記録されません。

私が作業しているファイルは C:\inetpub\wwwroot\dev\adminFiles にあります。CFC は C:\inetpub\wwwroot\dev\cfc にあります。最後に作業した人によると、cfc は CF サーバーにマッピングされています。<cfinvoke>テスト マシンで成功した場合と同じように単に a を実行すると、アプリケーションで失敗する方法がわかりません。

4

0 に答える 0