Last post Apr 01, 2010 03:48 PM by ramu_224
Mar 31, 2010 01:48 PM|Ramu_224|LINK
I am working with AD and i have to add users to the Distribution list if they are not present in the list. Everything works fine, but sometimes i get the exception as "A device attached to the system is not functioning." at directoryentry.commitchanges() method.
and sometimes it successfully adds the user to the group directly. I checked all the user-names and there is no special characters in the user-name i wonder is this exception is due to any network related issues. And more importantly the exception is not consistent,
for example if i get the exception when adding 10 users to a Distribution list and when i tried next time with the same 10 users the distribution list updates successfully. I really don't understand why i am getting this exception. Any help really appreciated.
Here is the block of code i am using.
entry = new directoryentry(LDAP+DL path,username,pwd,authenticationtype.secure)
i gave all the filters and properties to load conditions and finally
child = results.getdirectoryentry()
i can access all the properties of the DL with child
Thanks in advance.<code></code>
active Directory C# user groups
directory Services c#
Active Directory Application Mode
AD C# LDAP
Apr 01, 2010 03:48 PM|Ramu_224|LINK