Welcome to MSDN Blogs Sign in | Join | Help

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()

Published Friday, March 03, 2006 1:39 PM by mpoulson

Comments

# Mike Poulson s Thoughts on lots of stuff When using IIS adsi and IIS | internet marketing tools

New Comments to this post are disabled
 
Page view tracker