>I thought that was it, but in the line:
>
>
>DirectoryEntry virtualDir = IISAdmin.Children.Find("Root", "IIsWebVirtualDir");
>
>
>I get the error "The system cannot find the path specified".
Drop the /Root qualifier from the initial path of IISAdmin:
ex.
DirectoryEntry IISAdmin = new DirectoryEntry("IIS://localhost/W3SVC/1" );