Ask a Question related to ASP.NET General, Design and Development.
-
Mik #1
DirectoryEntry and CopyTo function
Hi
I am struggling to make a Web site/Web Directory copy work. I am using
the System.DirectoryServices to connect to my localhost machine.
There I have two web sites: Mysite1 (siteno 1) and Mysite2 (siteno 2).
I want to copy one directory or web app from Mysite1 to Mysite2 and I
cant get it to work. Have tried alot of different ways but no one will
work.
Heres a code example
Imports System.DirectoryServices
Public Sub Copy()
Dim oIIS_Source As New DirectoryEntry
"IIS://localhost/w3svc/2/root/test")
Dim oIIS_Target As New
DirectoryEntry("IIS://localhost/w3svc/1/root/test")
Dim oNewDir as DirectoryEntry
oNewDir = oIIS_Source.CopyTo(oIIS_Target)
I get "Path not found" error.
I can create Virtual directories by using DirectoryEntry but I cant
copy one to the other.
Any ideas?
Regards
Mikael
End Sub
Mik Guest
-
File.CopyTo across servers
I need to copy recorded streams from server to server. I planned on using the File.CopyTo function, but I have two questions. First, the PDF... -
path for DirectoryEntry
Hi All I have a directory server hosting multiple OUs, and I found that all the users I created under each OU will not appear under "Users"... -
Binding DirectoryEntry to AD object via GUID
I notice in the help files a reference that implies that you can create a DirectoryEntry object that binds directly to an active directory object... -
Directoryentry.bind
Hi I have a webapp that does queries against active directory. The app works fine when run from the local machine, but doesn't when run from... -
DirectoryEntry - enum users/groups...
Hi, Joe, Thank You for pointing me in the right direction. My apps now captures the user's password with a text box and retrieves the user's...



Reply With Quote

