IIS7被拒绝的权限 - ASP文件写入 [英] IIS7 Permission Denied - ASP File Write
问题描述
不幸的是,我没有一大堆的资料这一点。
我谁也搬到他们的网站从一个古老的制度,IIS7的Windows 2008 Server上的客户。有关该错误信息是如下:
Unfortunately I don't have a whole lot of information on this. I have a customer who has moved their site from an ancient system to IIS7 on Windows 2008 Server. Info about the error is below:
错误:
E:\\ wwwroot的\\ SP \\ XXX \\ online_data.xls
Microsoft VBScript运行时错误'800A0046
Error: E:\wwwroot\sp\xxx\online_data.xls Microsoft VBScript runtime error '800a0046'
权限被拒绝
/xxx/oat/exceldata.asp 52行
/xxx/oat/exceldata.asp, line 52
code:
49 response.write(server.mappath("online_data.xls"))
50
51 set fso = createobject("scripting.filesystemobject")
52 Set act = fso.CreateTextFile(server.mappath("online_data.xls"), true)
唯一的建议到目前为止是:
The only suggestion so far is to:
授予应用程序池
(默认应用/经典的应用程序池)的
模拟的标识读写
许可的物理文件夹
其中ASP页驻留
grant the application pool (DefaultAppPool / Classic AppPool)’s impersonated identity read and write permission to the physical folder which the asp page reside
会看看这个,当我访问,但其他的建议将是AP preciated。
Will look at this when I get access, but other suggestions would be appreciated.
推荐答案
提供的答案是正确的,但我需要就如何完成它更详细一点。为了使它很容易,按照下面的步骤。我设置了一个沙盒系统上的ASP页计数器在我们的内联网。
The provided answer is correct, but I needed a little more detail on how to accomplish it. To make it really easy, follow the steps below. I was setting up an asp page counter on a sandbox system in our intranet.
- 开启计算机管理。
- 向下钻取到IIS服务器
管理 - 在连接窗格中,单击
应用程序池 - 在应用程序池窗格中,
默认应用上右键点击
选择高级设置。在看
流程模型部分。 - 默认情况下,身份属性
设置为ApplicationPoolIdentity。
这是一个内置帐户。 - 如果把它设置为默认值,那么你
可以使用内置的用户
计算机名\\ IUSR您
权限设置。我不得不
指定计算机名称,因为
这是一个虚拟化的服务器,情况因人而异。 - 如果它没有设置为默认值,使用
该用户名的您的权限
设置。 - 取消对话框并返回了
Windows资源管理器,文件夹
在这里你需要添加的权限。 - 右键单击获得许可
设置。 - 设置了计算机名\\ IUSR或
你确定非默认的用户名
步骤6/7以上。格兰特
权限需要。
这帮助:
<一href=\"http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis-7/\">http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis-7/
这篇关于IIS7被拒绝的权限 - ASP文件写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!