473,387 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Permission denied on creating folder in wwwroot/vhosts/sitename/test using VBScript

5
Hello,

I am trying to make my ASP page to create a folder on a directory path. I am getting an error:

Microsoft VBScript runtime error '800a0046'

Permission denied

The code is below.
Expand|Select|Wrap|Line Numbers
  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> 
  2. <% dim strUserName foldername= "myfolder" 
  3. dim fObject,f set 
  4. fObject=Server.CreateObject("Scripting.FileSystemObject") response.write(server.mappath("\")&"\test\"&foldername) 
  5. set f=fObject.CreateFolder(server.mappath("\")&"\Letters\"&foldername) 
  6. set f=nothing 
  7. set fObject=nothing 
  8. response.write("folder created successfully
  9. ")
  10.  
  11. %>
  12.  
I know its something to do with IIS IUSR permission, but can't figure it out.
Sep 25 '10 #1
1 2697
Nicodemas
164 Expert 100+
You should change the IIS IUSR permissions on the \test folder to "Modify."

The is the most likely solution without knowing more about the server's settings.
Sep 29 '10 #2

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...
3
by: AndrewM | last post by:
Hello everyone, I have an asp page with a create folder script fs.CreateFolder(path) When running this on the server I get a Permission denied message as the IUSER account has no write...
2
by: Brian | last post by:
Hi I am moving a site to a new server, I have been testing it and one of the pages uses move_uploaded_file, but I get a Permission denied. The directory I am moving it to is chomd of 755, if...
2
by: Christoffer Sørensen | last post by:
Hi, I have a created a simple file upload asp.net web page which also creates directories on the fly using the following code: string fullpath = Server.MapPath(".\\..\\..\\" + path);...
9
by: Tony Proctor | last post by:
I need to create a process Singleton object for an ASP application, but I'm having some odd issues In my GLOBAL.ASA, I have an <OBJECTelement specifying the relevant ProgID with RUNAT=Server and...
0
by: preetishrivastava1984 | last post by:
Hi All, I am using Data Dynamics for Document Designer using VB. The code works fine at design mode but when I try to compile it , an error occurs (Permission Denied) at rpt.LoadLayout. ...
6
by: Andy2500 | last post by:
Hi, I'd like to upload an image to a folder, then I have 3 diffrents examples but all of them give an error "failed to open stream: Permission denied", althrough the C:\Inetpub\wwwroot is not...
1
rajiv07
by: rajiv07 | last post by:
Hi to all, I have a simple script to write something in to a file and read from the file.But it gives Permission Denied error My Script #!C:\Program...
2
by: =?Utf-8?B?c3RldmV3YQ==?= | last post by:
Microsoft VBScript runtime error '800a0046' Permission denied ======================= Trying to find the solution is driving me crazy. Using IIS6 on Server2003 SBS Default website localhost...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.