I'm trying to use some sample code for accessing the IIS metabase via
DirectoryServices that I found in the DOTNET list archive. Unfortunately,
the following line of code throws an InvalidOperationException:

 DirectoryEntry rootDir =
  new DirectoryEntry("IIS://LocalHost/W3SVC/1/ROOT");

The error message is: "Active Directory Client has not been installed on
this computer."

This is strange since I have some VB code, which uses GetObject() to access
the metabase, that works just fine, so I don't think the problem is that
the ADSI provider for IIS is missing. (Just to be sure, I verified that
adsiis.dll does exist on my system.)

I'm using IIS 5.0 on Windows 2000 Pro (Service Pack 2) with the .NET
Framework (Service Pack 1).

Any help will be much appreciated.

Thanks in advance,
Michael

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to