C# Deleting a IIS virtual directory on windows server 2003 gives a COMException

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.

iis
virtual-directory
comexception
asked on Stack Overflow May 8, 2009 by chugh97

1 Answer

0

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

answered on Stack Overflow May 8, 2009 by Anton Gogolev

User contributions licensed under CC BY-SA 3.0