简体   繁体   English

经典ASP-Windows Vista-IIS7-权限问题

[英]Classic ASP - Windows Vista - IIS7 - Permission issue

I've installed II7 + ASP Classic on my Vista business pc as I want to develop my own pctools (automate some boring manual tasks). 我要在Vista商务电脑上安装II7 + ASP Classic,因为我想开发自己的pctools(自动执行一些无聊的手动任务)。

Unfortunately, every time I try to WRITE into a .txt file I get this error: 不幸的是,每次我尝试写入.txt文件时,都会出现此错误:

Path out = C:\Users\Carlos\Storage\bpmbck.txt

Microsoft VBScript runtime error '800a0046'

Permission denied

/pctools/cleanfb.asp, line 53 

Line 53 contains set fileout = fs.OpenTextFile(pathout, ForWriting)

Given that I'm running as an ADMIN and that the target folder is owned by me, I don't understand why this is happening. 鉴于我以ADMIN身份运行并且目标文件夹归我所有,所以我不明白为什么会这样。

I've googled the net to find a similar basic problem (write to a text file) but I only find more complex ones (databases, mail, etc..). 我已经在网上搜寻了一个类似的基本问题(写入文本文件),但是我只找到了更复杂的问题(数据库,邮件等)。

An can anyone help me, please? 有人可以帮助我吗?

The identity/account for the application pool under which the site is running needs to have write permissions to that folder. 运行站点的应用程序池的标识/帐户需要对该文件夹具有写权限。

This is different from the user you are logged in as. 这不同于您作为登录用户。

授予“用户”对该文件夹的写访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM