본문 바로가기

Dev_Language/C#.NET

[-2147016684] 요청한 작업이 개체의 클래스와 연관된 하나 이상의 제약 조건을 만족하지 않습니다.

{"요청한 작업이 개체의 클래스와 연관된 하나 이상의 제약 조건을 만족하지 않습니다." }
[System.Runtime.InteropServices.COMException]: {System.Runtime.InteropServices.COMException}
System.Object: {System.Runtime.InteropServices.COMException}
_className: null
_COMPlusExceptionCode: -532459699
_exceptionMethod: <정의되지 않은 값>
_exceptionMethodString: null
_helpURL: null
_HResult: -2147016684
_innerException: { }
_message: "요청한 작업이 개체의 클래스와 연관된 하나 이상의 제약 조건을 만족하지 않습니다."
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceString: null
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2147016684
InnerException: { }
Message: "요청한 작업이 개체의 클래스와 연관된 하나 이상의 제약 조건을 만족하지 않습니다."
Source: "System.DirectoryServices"
StackTrace: " at System.DirectoryServices.Interop.IAds.SetInfo()rn at System.DirectoryServices.DirectoryEntry.CommitChanges()rn at eHRSync.Sync.ADSync.DoubleDept_Group_IU(DataTable dt) in c:\lotte\source\nets\coutomizition source\ehrsync\sync\adsync.cs:line 977"
TargetSite: {System.Reflection.RuntimeMethodInfo}
=========================================================
위와 같은 에러 메세지가 나왔다....
여러개의 DirectoryEntry 를 생성하다 생긴 오류이다.
오류 발생 사유는 변경하려는 Properties 가 존재하지 않아서 발생하였다.
CommitChanges을 하기전에 변경을 한 Properties 가 있다면 Properties명을 확인해 봐야
할것 같다.