Re: 800a0046 Permission Denied for filesystemobject on local disk

From: Matt Summers (msummers2k@hotmail.com)
Date: 05/05/02


From: "Matt Summers" <msummers2k@hotmail.com>
Date: Sun, 5 May 2002 00:17:08 -0500


Turn on file auditing for that directory and see what the problem is.

-matt

"George L." <nospam@mail.com> wrote in message
news:Px_A8.20648$uE2.1422325@news2.calgary.shaw.ca...
> Hello fellows,
>
> I need some help with '800a0046' Permission denied error which I am
getting
> on W2K SP2 IIS5 server.
> I did look through TechNet and newsgroups but so far I was not been able
to
> solve the issue completely.
> Originally my code was:
>
> varFilePath = "C:\Temp\myfile.txt"
> set objFSO = server.createobject("scripting.filesystemobject")
> set objtxtFile = objFSO.createTextFile(varFilePath, true)
>
> with c:\temp ntfs permissions set to "full control" for everyone and
> explicitly for IUSR_MACHINE and IWAM_MACHINE. After I read and follow
steps
> from MS Kbase article Q197964, the problem remains unless I created a
share
> and changed my code to:
>
> varFilePath = "\\MACHINE\Temp\myfile.txt"
> set objFSO = server.createobject("scripting.filesystemobject")
> set objtxtFile = objFSO.createTextFile(varFilePath, true)
>
> That worked to create a file but not allows me to delete it after I done
> with it. This code:
>
> objFSO.DeleteFile varFilePath
>
> would continue to fail with '800a0046' Permission denied error. What else
> can be done here?
> I should note that W2K machine is PDC with IISLockdown tool applied as
well
> as Cumulative Patch for Internet Information Services (Q319733) installed.
> Are those two can be potential problems for filesystemobject called by
IUSR
> ?
>
> Would appreciate any advise.
>
> Thanks in advance.
>
> George L.
>
>


Loading