简体   繁体   中英

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).

Unfortunately, every time I try to WRITE into a .txt file I get this error:

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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