Problem with method of DirectoryEntry with iis call (SchemaFilter,CopyTo,Rename)

  • Thread starter Thread starter Querton Pierre-Benoit
  • Start date Start date
Q

Querton Pierre-Benoit

Hello,

I develop a class to control IIS throw ADSI. But is seems that some
method doesn't work with IIS. To be more clear ;)

When I do the following code :
DirectoryEntry w3svc = new DirectoryEntry
("IIS://localhost/w3svc/1");
w3svc.Children.SchemaFilter.Add("IIsWebVirtualDir");

I'v got the following message on the SchemaFilter line.
"An unhandled exception of type 'System.NotImplementedException'
occurred in system.directoryservices.dll

Additional information: Not implemented"

I need to make the filter myself with a foreach loop. (beurk!!! if we
had the appropiate method ?!)

But when I do the same code with the "WinNT://localhost,computer"
DirectoryEntry w3svc = new DirectoryEntry
("WinNT://localhost,computer");
w3svc.Children.SchemaFilter.Add("user");

Everything work fine ! So Is there a problem with iis objet under adsi
?!!?

I have the same problem with the CopyTo,Rename method

Is someone had the same problem ?

Thanks you & Have nice day (here it's raining....again...)
 
Back
Top