PC Review


Reply
Thread Tools Rate Thread

Changed functionality in system.directoryservices ver. 1.1.4322.20

 
 
=?Utf-8?B?UmVuw6kgVGl0dWxhZXI=?=
Guest
Posts: n/a
 
      18th Apr 2005
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é

 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      18th Apr 2005

"René Titulaer" <(E-Mail Removed)> wrote in message
news:75DC0505-CCD7-45BC-8F4B-(E-Mail Removed)...
> 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é
>


Try:

.....Properties[<attribute>][0].Value = ...


Willy.


 
Reply With Quote
 
=?Utf-8?B?UmVuw6kgVGl0dWxhZXI=?=
Guest
Posts: n/a
 
      18th Apr 2005
Thanks a lot, this works.

Although I think you made a type mistake, probably you meant:
......Properties[<attribute>].Value = ...

instead of

......Properties[<attribute>][0].Value = ...

Thanks again.

"Willy Denoyette [MVP]" wrote:

>
> "René Titulaer" <(E-Mail Removed)> wrote in message
> news:75DC0505-CCD7-45BC-8F4B-(E-Mail Removed)...
> > 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é
> >

>
> Try:
>
> .....Properties[<attribute>][0].Value = ...
>
>
> Willy.
>
>
>

 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      18th Apr 2005

"René Titulaer" <(E-Mail Removed)> wrote in message
news:36E9DC14-BA84-4C53-985F-(E-Mail Removed)...
> Thanks a lot, this works.
>
> Although I think you made a type mistake, probably you meant:
> .....Properties[<attribute>].Value = ...
>
> instead of
>
> .....Properties[<attribute>][0].Value = ...
>
> Thanks again.
>
> "Willy Denoyette [MVP]" wrote:
>


Exactl, cut and paste mistake.

Willy.


 
Reply With Quote
 
Marc Scheuner [MVP ADSI]
Guest
Posts: n/a
 
      19th Apr 2005
>Can anybody help me with this problem?

I got some answers from fellow Directory Services MVP Joe Kaplan, and
from Microsoft fellow Matt Rimer on this - check 'em out:

[Joe Kaplan]
This is a known issue related to the recent service pack releases.
Generally, using the .Value syntax solves the problem.

Given that there are some hotfixes associated with the service pack
release that address this issue, it would be helpful to get a list of
the hotfixes and what OS's they apply to as I'm not sure all versions
of ADSI are affected the same way.

[Matt Rimer @ Microsoft.com]
Do KB articles 886541 and 835763 clarify matters at all?

Thanks,
Matt

http://support.microsoft.com/default...b;en-us;886541
http://support.microsoft.com/default...b;en-us;835763

HTH
Marc
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Data.dll Difference (Windows Server 2003 - Framework v1.1.4322 vs (Other Windows OS) - Framework v1.1.4322) Mythran Microsoft ADO .NET 1 12th Oct 2007 06:40 PM
Changed functionality for F4 Tom Smith Microsoft Word New Users 4 12th Sep 2006 10:29 AM
unhandled exeption of type 'System.Runtime.InteropServices.COMException' in system directoryservices.dll cgian31 Microsoft C# .NET 5 7th Jan 2006 04:12 PM
System.DirectoryServices Jeremy Chapman Microsoft Dot NET Framework 2 21st Oct 2003 04:50 PM
Upgrading Framework v1.1.4322.342 to v1.1.4322.573 Kurt Bonne Microsoft ASP .NET 1 8th Aug 2003 11:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:39 AM.