2

带有 IIS 7.5 的 Win 2K8 上的 CF10。我的 webroot 是 d:\web[sitename] ,其中 [sitename] 是实际站点的文件夹。

我想读取存储在其他地方的 .txt 文件 - 比如说 d:\web\somefile.txt 或 d:\somefile.txt,但似乎无论我给文件或它的父文件夹什么权限,我都会收到文件未找到错误:

 An error occurred when performing a file operation read on file d:/web/somefile.txt.
The cause of this exception was: java.io.FileNotFoundException: d:/web/somefile.txt (The system cannot find the file specified). 

我的 CF 服务以特定用户身份运行,我已经为该用户提供了从读取到完全控制该文件的所有内容,但仍然没有骰子。我的 IIS 应用程序池也以特定用户身份运行,为其添加权限也无济于事。

这是我需要配置的Tomcat吗?如果是这样,怎么做?

4

1 回答 1

0

您可能启用了沙盒安全性,这会阻止 CF 读取文件。登录 CF 管理员并检查它。

于 2012-12-10T21:00:07.317 回答