all groups > iis security > august 2004 >
You're in the

iis security

group:

IIS5.1 and permissions


IIS5.1 and permissions Ol Timer
8/28/2004 12:17:00 AM
iis security: I have something very weird going on. I have a very simple counter on our
website run under IIS5/2000 for over two years. No problem. It simply keeps
a incremented count in a text file, opens the file, read the value,
increment by one, write the new value back to the text file, (Overwrite it).
Develoing pages under XP Pro on my home computer with IIS5.1, the script
opens the file reads the value and increments it, but when it goes to write
it back to the text file, I get the following:

Microsoft VBScript runtime (0x800A0046)
Permission denied
/counter/counter.asp, line 40

Line forty is as follows:
Set objCountFile = objFSO.OpenTextFile(strCountFileName, 1, True)

I have checked file attributes and they are not Read Only or hidden/System.
Permissions for the web folder are Scripts and executables. I don't know how
to give any more.
It can read the file contents, but refuses to overwrite the file. I have
tried different filenames and locations. Same results. This works on 2000 so
looks to me like a sever permission issue with XP. Can anyone help?

Ed

Re: IIS5.1 and permissions Miha Pihler
8/28/2004 4:13:35 PM
Hi,

IIS also honors NTFS (file system) permissions when allowing users to read
or write to files. Check how NTFS permissions are set on Windows 2000 and
compare that to Windows XP.

Mike

[quoted text, click to view]

AddThis Social Bookmark Button