Click to See Complete Forum and Search --> : ADSI


Kazmi
03-09-2001, 04:35 PM
I am trying to write a component which uses Active Directory Interfaces. This
component simply creates virtual webs.
I am having a couple of problems
1. Some properties of an IIsVirtualWeb dont seem to be documented properly
on MSDN. For instance AccessSource has type Boolean. As soon as it sees that
property with a boolean type, the program crashes. However other attributes
with Boolean type happily accept the values. Other types that crashed are
NMToken (no idea). Can someone tell me if I am doing something wrong???

2. If the program crashes before writing attributes to the Metabase (SetInfo)
it holds some kind of reference to the IIsVirtualWeb object created before
the crash. For instance if I am creating a Virtual web named X and the program
crashes, then the second time when it is trying to create the object using
the ADSI path "IIS://machinename/W3SVC/n/ROOT/x" it tells me that this object
already exists. Remeber, the program crashed before setting the Metabase
properties (i.e reaching the SetInfo() method)


Please help me out here or refer me to a good reference.
Thanx in advance