M
Marc Scheuner [MVP ADSI]
public DirectoryEntry Find(string, string) method get Exception from
Have you checked at this point to make sure "rootfolder" is not
null???
if(rootfolder != null)
{
DirectoryEntry de = rootfolder.Children.Find("docula5",
"IIsWebVirtualDir");//,rootfolder.SchemaClassName);
}
else
{
MessageBox.Show("Your 'rootfolder' is NULL !!");
}
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
HRESULT: 0x80005008
public DirectoryEntry Find(string); method get NullReferenceException
source code :
DirectoryEntry rootfolder = new
DirectoryEntry("IIS://localhost/W3SVC/1/ROOT");
Have you checked at this point to make sure "rootfolder" is not
null???
if(rootfolder != null)
{
DirectoryEntry de = rootfolder.Children.Find("docula5",
"IIsWebVirtualDir");//,rootfolder.SchemaClassName);
}
else
{
MessageBox.Show("Your 'rootfolder' is NULL !!");
}
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch