Groups | Blog | Home
all groups > inetserver asp general > january 2004 >

inetserver asp general : ASP Script errors.. Only just started happenng....!



TomT
1/31/2004 12:16:51 PM
Microsoft VBScript runtime error '800a0046'
Permission denied


This happens when I try and delete a file using :

<!-- asp -->

<%
deletefile = request.querystring("file")
set objfso = createobject("scripting.filesystemobject")
if objfso.fileexists (server.mappath("backup/" & deletefile)) then
objfso.deletefile(server.mappath("backup/" & deletefile))

<!-- asp -->


This has worked in the past, but not now..
I think I've screwed the permissions, but can't work out what.

The folder structure is:

TESTSITE
---> backup
---> images

In the testsite root is the asp pages
The backup folder holds backup files
Images holds .... Images ! :)

I have set Administrators with Full Control, and IUSER with READ, WRITE,
READ, EXECUTE & LIST.

I have set for all the permissions to be passed to all files and folders
off the root of TestSite!! (I think !)

This is on Windows 2000 Server and Windows 2003 Server.

This worked on my old HardDisk, I cloned that and now running on a new disk
!

Any Advice ??

Thanks


Erik
1/31/2004 10:46:17 PM
Hi,

If your site is configured for anonymous accesss, the iusr_ account will be
the account that needs premissions to delete the file. Why it have worked in
the past but not now I dont know, have you changed any configuration setting
in iis?

/Erik

[quoted text, click to view]

TomT
2/7/2004 10:26:36 PM
The problem started when I installed windows 2003 server as a dual boot
with the existing Windows 2000 server.

The 'C:' drive is selectable from a boot menu, I can choose Win 2000 server
or Win 2003 Server, which ever I pick the other is hidden.

I also have a 'D:' this has the web sites on.

All was working fine until the 2003 server was installed and I assigned
permissions to the Web Sites folder.

I think the 2003 has overwritten the permissions on the 2000, and vice
versa..

If I give the IUSER modify and delete access to the folder with that site
in the scripts wor fine, but I can't remember if that is how it was
originally configured.

I do have a clone of the original machine, so I can swap the hard disk and
see what the setting were...

Any other advice or ideas ??



AddThis Social Bookmark Button