views:

188

answers:

1
  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.

A: 

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

Anton Gogolev
You can use DirectoryEntry Class to manage all settings within IIS.
chugh97