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.
How come you're using DirectoryEntry
, which is purely ActiveDirectory-related class, to manage IIS virtual directories? See this for pointers.
User contributions licensed under CC BY-SA 3.0