Mark said:
Are you perhaps getting confused between directories...? The "directory"
in ActiveDirectory is not the same as a "directory" (a.k.a. "folder") on
a file system...
In order to create a file system directory in .NET you use the
CreateDirectory method in the System.IO namespace:
http://msdn2.microsoft.com/en-us/library/54a0at6s(vs.80).aspx
However, since you've posted in an ASP.NET newsgroup, note that you will
not be able to make an ASP.NET app create folders on browser machines
natively, for security reasons...
No I am not getting confused I know what System.IO does, there is simply
a clash with nameing conventions.
Let me rephrase:
I wish to be able create a folder on any computer within the current
Active Directory Domain.
I am controling IIS using the Microsoft.Web.Administration.
We are using windows 2008 build 6001
I can create the nessesary items within IIS, websites, Virtual Folders,
set permissions etc. All I need now is a way to create the physical path
to correspond to the properties I am setting.
ASP.Net is running with suitable permissions to impersonate a user that
has permission to create folders on the target machines (Web Servers).
If I cant do it via DirectoryServices, I think I shall have to go down
the path (No not a file system path
) of having a WebService running
on each of the Web Server in the AD domain, that will be able to create
the file structures needed, However I would like to use Directory
Services to avoid the potential security risks of the latter method.