Dear all,
we have the following problem. We like to update a LDAP diretory using
system.directoryservices. This worked fine in the past but now it stopped
working, we get a System.NotSupportedException. We use the following syntax:
<DirectoryEntry>.Properties[<attribute>][0] = <value>;
Further research turned out that this does work using
system.directoryservices.dll 1.1.4322.573 but doesn't work using version
1.1.4322.2032.
To investigate the difference I used Reflector (c# disassembler). I found
the following code (for set_item) in version 1.1.4322.2032:
if (this.needNewBehavior && !this.allowMultipleChange)
{
throw new NotSupportedException();
}
base.List[index] = value;
Version 1.1.4322.573 doesn't has this "if" criteria, it simply sets the
value. If I look at the values using the debugger I see that
this.allowMultipleChange is false and needNewBehavior is true, therefore I
get a NotSupportedException().
So now I have a huge problem: I can't update my LDAP anymore.
Can anybody help me with this problem?
Or does anybody know where I can find documentation about the differences in
the different releases of a dll?
Or does anybody know where I can find system.directoryservices newsgroups?
Or does anybody know how to contact miscrosoft about this matter (somebody
must have changed the code for some reason without documenting it)?
Thanks,
René