创建网站root目录时执行AppCreate即可 
 
 
 

   DirectoryEntry vdEntry = newSiteEntry.Children.Add("root", "IIsWebVirtualDir"); 
 
 
 

               vdEntry.Invoke("AppCreate", true); 
 
 
 

               vdEntry.CommitChanges();