不幸的是,我没有很多关于此的信息。 我有一位客户将他们的网站从古老的系统移至Windows 2008 Server上的IIS7。有关该错误信息是如下:IIS7权限被拒绝 - ASP文件写入
错误: E:\ wwwroot的\ SP \ XXX \ online_data.xls Microsoft VBScript运行时错误 '800A0046'
权限被拒绝
/XXX /燕麦/ exceldata的.asp,行52
代码:
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)
唯一的建议到目前为止是:
grant the application pool (DefaultAppPool/Classic AppPool)’s impersonated identity read and write permission to the physical folder which the asp page reside
当我获得访问权限时会查看此内容,但其他建议将不胜感激。
我认为这个建议可行,另一个选择是检查默认的应用程序池是否作为网络服务运行,并给网络服务访问权限写入该文件夹 – kd7 2010-12-22 02:19:24