473,463 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Permission Denied

Someone suggested I post this here. Nobody in the ASP forums had an answer

I'm getting this error while trying to rename a file on my webserver

Microsoft VBScript runtime error '800a0046'

Permission denied

/pictures/testy.asp, line 11

Now I've gone and checked the permissions on the folder through the limited web utility my hosting service provides me and I've given the folder all possible permissions.

I had a page that would upload a file and then rename it to the email address of the user that uploaded it (for uniqueness). It worked fine, then while working on a newer version of my site (setting up new folders) I get this error while trying to exercise anything requiring modify rights as an anonymous user (move, rename). Nothing on the original page changed, but once I reset all the permissions from the root even the original page errors out now. Just to double check I made a simple script so I could completely eliminate it as a problem.

Code: ( text )

1.
<%
2.

3.
dim fs
4.
set fs=Server.CreateObject("Scripting.FileSystemObject ")
5.

6.

7.

8.
path3 = Server.MapPath("sample3.txt")
9.
path4 = Server.MapPath("sample.txt")
10.

11.
fs.MoveFile path4,path3
12.

13.

14.

15.
set fs=nothing
16.

17.
%>



I'm using godaddy as my host and they keep insisting its not a permissions problem and that everything is set right. Have you guys ever had a similar problem and how did it get fixed?
Jan 9 '08 #1
2 3727
kenobewan
4,871 Expert 4TB
If the account permissions and folder permissions are ok, then it is usually that the file still being used by another process. However I believe there may be serious security implications of allowing anonymous user to do such an operation.

There can be a downside to third party, you often have to prove the problem is theirs. Maybe you should have one who has a better management console without risking their own security. Don't get me wrong I am a huge fan of third party hosting.

Which OS are you using? This article may help:
Could I get some help working with files using FileSystemObject?
Jan 10 '08 #2
Thanks for the reply. The problem ended up being with godaddy (of course). When they switched to the new UI apparently the "write" permission on the UI was supposed to give modify permissions also so it must of been screwed up for everyone. Totally lame, but at least it works now.
Jan 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Klunk | last post by:
Hi, last week I moved the folder of my Intranet application to another disk of the same server. After this change all the ASP page return this error: Microsoft VBScript runtime error...
6
by: Jon Montana | last post by:
CDONTS was working well until I installed Exchange 2000. I thought it might be a relay problem, but I allowed the server IP address to relay. Thanks for anything you can offer. here's the...
1
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's...
10
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
0
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: private.anders | last post by:
Really need your assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
4
by: xzzy | last post by:
I have a v1.1 web app that works on my local computer. However, running it at the host computer, the following breaks: when a viewer selects a different country, the State dropdown should...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.