I can create Virtual directories in an application with this code:
ServerManager iisManager = new ServerManager();
Application app = iisManager.Sites["NewSite"].Applications["/Sales"];
app.VirtualDirectories.Add("/VDir", "d:\\MyVDir");
iisManager.CommitChanges();
But I cannot create a Virtual directory in the root of the Website.
¿Any ideas?