0
  DirectoryEntry oDirectoryEntry = new DirectoryEntry(virtualDirMetaPath);
  oDirectoryEntry.DeleteTree();

This throws a COMException 0x80005000. Any pointers welcome. Creation of virtual directory is fine. Its only at uninstall I get this error logged in Event Viewver.

4

1 回答 1

0

How come you're using DirectoryEntry, which is purely ActiveDirectory-related class, to manage IIS virtual directories? See this for pointers.

于 2009-05-08T10:22:11.103 回答