经典 ASP .CopyFile“权限被拒绝” Windows Server 2008、IIS 7 上的错误

发布于 2024-12-08 10:52:39 字数 627 浏览 7 评论 0原文

我们正在将 Intranet Web 服务器从 Windows Server 2000、IIS 4 环境升级到 Windows Server 2008、IIS 7 环境。作为升级的一部分,我正在修改一个经典的 ASP 应用程序以使其能够在新环境中工作。

其中一个页面尝试通过使用以下命令将模板文件 (.dot) 复制到 Web 服务器上同一目录中的 Word 文件 (.doc) 来创建新的 Word 文件:

fs.CopyFile docRoot & templateFile,docRoot & docName, true

注意 - docRoot 是绝对路径,而不是虚拟路径。

目标文件夹设置为具有以下权限:

  • 所有人
  • 管理员
  • IUSR
  • IWAM 帐户

我仍然收到以下错误:

Microsoft VBScript runtime error '800a0046' 

Permission denied 

只是想知道是否有人看到过此内容,以及是否有可用的解决方法。 (我尝试设置默认应用程序用户来使用我的权限,但这也不起作用......)

We are upgrading our intranet web server from a Windows Server 2000, IIS 4 environment to Windows Server 2008, IIS 7 environment. As part of the upgrade, I'm modifying a classic ASP application to make it work in the new environment.

One of the pages attempts to create a new Word file by copying a template file (.dot) into a Word file (.doc) in the same directory on the web server, using the command:

fs.CopyFile docRoot & templateFile,docRoot & docName, true

Note - docRoot is an absolute path, not a virtual path.

The destination folder is set to have full permissions for:

  • Everyone
  • Administrators
  • IUSR
  • IWAM accounts

I still get the following error:

Microsoft VBScript runtime error '800a0046' 

Permission denied 

Just wondering if anyone had seen this, and if there was a workaround available. (I attempted to set a default application user to use my permissions, but that didn't work, either...)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不乱于心 2024-12-15 10:52:39

Windows 2008 /2008 R2中的问题是Vista时代诞生的UAC服务。
保护 inetpub 目录中的所有内容
...作为解决方法,尝试将文件放入 Users/Public/ 目录中,修改路径并重试。

您可以尝试的另一件事是将文件的完全控制权限授予 IIS_WPG 组。

the problem in Windows 2008 /2008 R2 is the UAC service that born in Vista era.
secures everything in inetpub directory
... as a workarround try to put your file in Users/Public/ directory, modify your path and try again.

another thing you can try is giving file's total control privileges to the IIS_WPG group.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文