C# + AD LDS - Help interpreting error message


i've written code manage membership of ad lds container using c#. in our testing, error thrown when attempting commit our changes directoryentry if people added. code works fine if these specific users aren't included in membership.

detailed exception generated is:

system.directoryservices.directoryservicescomexception unhandled  hresult=-2147016657  message=a constraint violation occurred.    source=system.directoryservices  errorcode=-2147016657  extendederror=8373  extendederrormessage=000020b5: atrerr: dsid-03152804, #1:  0: 000020b5: dsid-03152804, problem 1005 (constraint_att_type), data 0, att 1f (member)  stacktrace:  @ system.directoryservices.directoryentry.commitchanges()  @ hci.directoryservices.adlds.role.save() in c:\projects\et\shared\hci.directoryservices\adlds\role.cs:line 186  @ hci.test.admanager.passwordmodifier.main() in c:\projects\et\admanager\hci.test.admanager\program.cs:line 303  @ system.appdomain._nexecuteassembly(runtimeassembly assembly, string[] args)  @ microsoft.visualstudio.hostingprocess.hostproc.runusersassembly()  @ system.threading.executioncontext.runinternal(executioncontext executioncontext, contextcallback callback, object state, boolean preservesyncctx)  @ system.threading.executioncontext.run(executioncontext executioncontext, contextcallback callback, object state, boolean preservesyncctx)  @ system.threading.executioncontext.run(executioncontext executioncontext, contextcallback callback, object state)  @ system.threading.threadhelper.threadstart()



have read online, message indicates there problem member attribute of group, have no idea be. stated, same code works when these specific users excluded. haven't been able find commonality problem users either.

final kicker, if manually add these users container using adsi edit, can want them code: remove, add back, add different container, etc.

advice appreciated.

hello truckstuff,

based on exist articles related issues, saw article:

http://support.microsoft.com/kb/907352

"to work around problem, make sure that  active directory users , computers  snap-in , group policy object editor  snap-in connect same domain controller"

i'm not familiar ad lds please manually check difference between specific users normal users.

another thing may take notice of permission problem, maybe can check directoryservicespermission set permission.

best regards,



barry
trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'