很抱歉,我对此事没有太多信息。
我的客户已将他们的站点从一个古老的系统移动到Windows 2008服务器上的IIS7。下面是有关错误的信息:
错误: E:\wwwroot\sp\xxx\online_data.xls Microsoft VBScript runtime error '800a0046'
权限被拒绝
/xxx/oat/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)
目前唯一的建议是:
授予应用程序池(DefaultAppPool / Classic AppPool)的模拟身份读取和写入权限,以访问asp页面所在的物理文件夹。
我获得访问权限后会查看此问题,但欢迎提供其他建议。