ASP Script errors.. Only just started happenng....!

T

TomT

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
 
E

Erik

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
 
T

TomT

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 ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ASP and FTP 3
New to ASP need help 1
ASP Script Hangs 7
All the sessions reset when run copy folder or file 1
File Attributes with ASP in HTML 1
run dos command asp 1
ASP Server.Mappath 0
Server.Mappath Help 2

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top