经典 ASP .CopyFile“权限被拒绝” Windows Server 2008、IIS 7 上的错误
我们正在将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
请参阅下面的链接并授予互联网访客用户许可。
http ://classicasp.aspfaq.com/files/directories-fso/could-i-get-some-help-working-with-files-using-filesystemobject.html
Please refer below link and give permission to internet Guest User.
http://classicasp.aspfaq.com/files/directories-fso/could-i-get-some-help-working-with-files-using-filesystemobject.html