473,396 Members | 1,966 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,396 software developers and data experts.

CreateFolder FileSystemObject hangs

In the code below I'm trying to create a directory. It works on the
production server, but it doesn't on my dev server; I'm running XP Pro, but
I don't belong to a domain; I'm running it in a workgroup instead. I've
enabled the write option in IIS on the directory.

Because I'm not in a domain, there's no security tab on the property dialog
for the folder in Windows Explorer, so I can't assign IUSR access right
there. Do you have any suggestions to give access rights?

Maybe the failure on my machine is not access rights, but something else,
because on the production server, before I was granted permission, I got an
access rights denied browser error message, but on my machine, there was no
error message; the browser just hangs on the CreateFolder command.

Thanks for any help you can offer.

Bren

sPath = Server.MapPath("\") & "\app\test"
Set fso = CreateObject("Scripting.FileSystemObject")
If not(fso.FolderExists(sPath)) Then
Set f = fso.CreateFolder(sPath)
Response.write(f.Path)
end if


Jul 19 '05 #1
4 1788
Hi Bren,

Check out http://www.aspfaq.com/show.asp?id=2180.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the browser just hangs on the CreateFolder command.
sPath = Server.MapPath("\") & "\app\test"

Jul 19 '05 #2
Ray,

Thanks for your reply to my posting.

I did have Norton Anti Virus Script Blocking turned on.

Turning it off, I now get the "Access Denied" error message.

so, the next step is for me to figure out how to allow write permissions to
the app.

thanks, Bren
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:e6**************@TK2MSFTNGP15.phx.gbl...
Hi Bren,

Check out http://www.aspfaq.com/show.asp?id=2180.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the browser just hangs on the CreateFolder command.
sPath = Server.MapPath("\") & "\app\test"


Jul 19 '05 #3
Make sure that IUSR_computername, assuming a default configuration, has NTFS
permissions to create a directory in the location you're trying to create
it.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Ray,

Thanks for your reply to my posting.

I did have Norton Anti Virus Script Blocking turned on.

Turning it off, I now get the "Access Denied" error message.

so, the next step is for me to figure out how to allow write permissions
to
the app.

thanks, Bren
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:e6**************@TK2MSFTNGP15.phx.gbl...
Hi Bren,

Check out http://www.aspfaq.com/show.asp?id=2180.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> the browser just hangs on the CreateFolder command.
>
>
> sPath = Server.MapPath("\") & "\app\test"



Jul 19 '05 #4
Thanks again Ray.

For me, the solution to the permission problem was to open the property
dialog of the directory into which the app page would be creating
directories, on the sharing tab, share the directory and "allow network
users to change my files"

This enables the IUSR account, which is a member of Guests by default, to
write to the directory and create folders.

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eB**************@TK2MSFTNGP12.phx.gbl...
Make sure that IUSR_computername, assuming a default configuration, has NTFS permissions to create a directory in the location you're trying to create
it.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Ray,

Thanks for your reply to my posting.

I did have Norton Anti Virus Script Blocking turned on.

Turning it off, I now get the "Access Denied" error message.

so, the next step is for me to figure out how to allow write permissions
to
the app.

thanks, Bren
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:e6**************@TK2MSFTNGP15.phx.gbl...
Hi Bren,

Check out http://www.aspfaq.com/show.asp?id=2180.

Ray at home

"Bren" <br**@ebesser.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> the browser just hangs on the CreateFolder command.
>
>
> sPath = Server.MapPath("\") & "\app\test"



Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Roger Withnell | last post by:
Going round in circles trying to do this. If I use: Set objFS = Server.CreateObject ("Scripting.FileSystemObject") objFS.DeleteFile (vPath & "AndreaBremner.gif") the page hangs on the...
3
by: PB4FUN | last post by:
If I comment #2 to #5 no problems. If I uncomment #2, #4 and #5 the page hangs. Even did not reach the point to uncomment #3 So, whats wrong. Do i have to alter some serversettings, and if so,...
2
by: NeilS | last post by:
I'm developing under IIS V5.1 and testing on an ethernet with IIS hosted on WinXPPro. I am trying to implement file-upload using a polished version of the technique published in...
2
by: John Keenan | last post by:
the CreateObject works fine. the FolderExists works fine... I tested this out by giving it a folder that does not exists too working fine means, I get response within a moment or two. but...
0
by: Pedro Bautista | last post by:
Status: Unsolved and puzzling Steps to reproduce the error: 1.- Delete IUSER from server 2.- Reboot server (OS rebuilds IUSR) 3.- Assign IUSR read and execute permission on web folder and...
4
by: Stimp | last post by:
This is a query to do with classic ASP (written through vbscript). I apologise in advance to posting to an ASP.NET forum, but my newsserver doesn't have any others listed... plus it's a permissions...
10
by: anjelone | last post by:
Hi. When I use CreateFolder() to create a folder with a space at the end, it creates the folder successfully, but still errors out with a "Path not Found" error. For example: <% Dim...
1
by: RdS | last post by:
Hello, I have been searching for what createfolder can return or does return. Where on MSDN can I find what a MS method returns? I have searched for filesystemobject.createfolder errors, error...
1
by: Iain Bishop | last post by:
I am trying to execute the following function which performs four tests to make sure the current environment is capable of uploading files. Test 1 completes ok, but test 2 results in the page...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.