IIS Server Security >> Problem in creating folders

by Bhavin » Tue, 21 Oct 2003 08:47:08 GMT

Hi
I'm trying to create a folder under D:\temp with new
folder name xyz
I have given permission to temp folder full control and
also added users iwam_machinename and iusr_bhavin.
I have also set up read and write access in my
application.
When I try to execute script, it doesnt show any error
but nothing comes up on the screen and Server gets hanged.
Thanx at advanced.
-bhavin :(


Similar Threads

1. Problem in creating folder - ASP

2. Cannot create folder within webdav folder

Hi,

Created a virtual dir called webdav, put write and read permissions on
it via the IIS console. Then disabled anonymous access and left on
integrated windows authentication.

Under permissions, created a group for ftp users, then added a test
user, gave the group full read write permissions, and under advanced
permissions checked delete subfolders and files, as well as create
folders /append data. So my question is then, why when opening the
folder via IE browser as web folder, doesn't it allow me to create a
new folder. The message I get is:

"A folder named 'new folder' already exists. Please enter a different
name." and then the next pop-up, "Unable to create new folder"

Moving a folder into this directory doesn't work either. Moving files
into this web folder works fine, except that it at first says, "This
folder already contains a file named 'foo'." "Would you like to replace
the file 0 bytes with this one 'foo'

This is asked even though there is no file named foo on the folder.

Any ideas?

Road

3. IIS6 doesn't always create the needed "aspnet_client" folder in web site folders

4. IIS, ADSI - Create virtual/application folder inside existing physical folder

Hi

I use ADSI from vbs script to create virtual application folders etc.
Works well.

But one question:
GetObject("IIS://localhost/W3SVC/1/Root/myMainFolder")
will work if "myMainFolder" is a virtual directory or a physical
folder in the root WITH a Application Folder created on it.

Then
GetObject("IIS://localhost/W3SVC/1/Root/myMainFolder")
Fails when "myMainFolder" is a just a physical folder in the root
(Seems the GetObject throw exception no -2147024893 without a
description)

I need to create application folders inside a physical folder in the
root with "myMainFolder" as a physical folder in the root, like:

root/myMainFolder/DotNetApp1/
root/myMainFolder/DotNetApp2/
root/myMainFolder/DotNetApp3/
etc

where the "DotNetApp1" is an application folder.

Any help would be appreciated.

gert

5. strange webdav problem creating folders

6. Create folder programmatically under IIS Web Site

Hi All,

I want to programmatically(c# fmw 2.0) create a folder under my IIS
Web Site. I figured that I needed to create an entry in the IIS
Metabase.

So, after investigating a while and i figured out something pretty
weird:

I downloaded a source code that allowed me to do what I wanted.
However, it's written in asp.net v1.0 and I needed in v2.0. So, I
converted it to that version.

Well, you all can imagine it must have worked, but you're wrong: it
didn't (i'm pretty sure is that because i tried: copying the
procedures and functions I needed to a asp.net v2.0 project. Then,
after the last try didn't work, I tried converting the entire solution
to v2.0 and it did it successfully).

I don't know why, but the v1.0 application is able to create the entry
at the metabase under my virtual directory(IIS://localhost/W3SVC/<web
site id>/root/<new dir's name>) but when I try to do the same using
the v2.0 app i get the following error:

System.Runtime.InteropServices.COMException (0x80070003): The system
cannot find the path specified.

   at System.DirectoryServices.DirectoryEntry.Bind(Boolean
throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.PropertyValueCollection.PopulateList()
   at
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry
entry, String propertyName)
   at System.DirectoryServices.PropertyCollection.get_Item(String
propertyName)
   at Example.Form1.setDirectory_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

Do you have any clue on this?

Thanks,

Brian

7. Front end server, the exchnage folders in the IIS are not created - Microsoft Exchange Server

8. safileup create folder - I'm new!

Hello,
I am new to safileup and can't figure out how to use it to create a
folder.
In the support documents the folder object has many methods but none
seem to be for creating a folder! Can someone point me in the right
direction?
Thanks!