Author: shannow63 | Posted on: 6/22/2010 11:16:50 AM | Views : 251

Hi all,
I hope this is the correct place for this!

For our website we are implementing the MS membership control, which works well. 
We also need to create virtual directories on completion of logging in.  I have a c# class which does this but no matter how I try I cannot get it to work.
Here's the code;

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.DirectoryServices; namespace learninglounge.com.solar.session { public class ManageVirDir { String _serverName; DirectoryEntry _iisServer; DirectoryEntry folderRoot; DirectoryEntry newVirDir; public static string VirDirSchemaName = "IIsWebVirtualDir"; public ManageVirDir(String serverName) { _serverName = serverName; } public void Connect() { try { _iisSe ...

Go to the complete details ...