473,765 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CreateFolder FileSystemObjec t 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("S cripting.FileSy stemObject")
If not(fso.FolderE xists(sPath)) Then
Set f = fso.CreateFolde r(sPath)
Response.write( f.Path)
end if


Jul 19 '05 #1
4 1806
Hi Bren,

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

Ray at home

"Bren" <br**@ebesser.c om> wrote in message
news:%2******** ********@TK2MSF TNGP09.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******** ******@TK2MSFTN GP15.phx.gbl...
Hi Bren,

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

Ray at home

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


Jul 19 '05 #3
Make sure that IUSR_computerna me, 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.c om> wrote in message
news:Oj******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP15.phx.gbl...
Hi Bren,

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

Ray at home

"Bren" <br**@ebesser.c om> wrote in message
news:%2******** ********@TK2MSF TNGP09.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******** ******@TK2MSFTN GP12.phx.gbl...
Make sure that IUSR_computerna me, 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.c om> wrote in message
news:Oj******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP15.phx.gbl...
Hi Bren,

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

Ray at home

"Bren" <br**@ebesser.c om> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
2900
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 objFS.DeleteFile and if I use: Set objFS = Server.CreateObject ("Scripting.FileSystemObject") Set objFile = objFS.GetFile (server.mappath ("Temp\AndreaBremner.gif"))
3
7173
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, what should be changed ? OS : W2KP/IIS CPU PII 350 MHz Mem >500 MB
2
5036
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 <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasdj01/html/asp0900.asp> IIS goes out to lunch when it gets to the CreateTextFile statement in the lines: objFSO = server.createObject("Scripting.FileSystemObject")
2
1705
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 when I use GetFolder, IE takes about 30 seconds to go half way on the progress bar, then hangs Also, I do get notified from Norton that something is trying to do go out.
0
1318
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 enable propagation of inheritable permission on child folders. 4.- Read a file using Server.FileSystemObject into the web
4
1288
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 question which may have some relevance to asp.net users. I am trying to run an asp page on my local Windows 2000 machine which creates a folder in the root directory of my site, but when I run the page it simply hangs when it gets to the...
10
1706
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 strCurrentPath
1
2669
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 codes, error, etc. and cannot find what it returns. The syntax document for the method on MSDN doesn't list what it returns. I need to know what the method can return so I can handle exceptions.
1
2486
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 hanging indefinitely. An error number is not returned (it just hangs on the line: Set testFile = fso.CreateTextFile(fileName, true) ). However when I execute test 2 using VBScript from within an Excel macro it creates the text file without any...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.