When using IIS adsi and IIS:// IIS must be installed

If you are using ADSI to manage your IIS servers via .net you need to make sure IIS is installed on the server that calls the ADSI code. 

If you don't have it installed you might have an error like.

  System.Exception: System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_IsContainer()
   at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)
   at System.DirectoryServices.DirectoryEntries.GetEnumerator()