본문 바로가기

Dev_Language/C#.NET

DirectoryEntry 권한 설정 문제 대처방법




{"연산 오류가 발생했습니다" }
[System.Runtime.InteropServices.COMException]: {System.Runtime.InteropServices.COMException}
System.Object: {System.Runtime.InteropServices.COMException}
_className: null
_COMPlusExceptionCode: -532459699
_exceptionMethod: <정의되지 않은 값>
_exceptionMethodString: null
_helpURL: null
_HResult: -2147016672
_innerException: { }
_message: "연산 오류가 발생했습니다"
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceString: null
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2147016672
InnerException: { }
Message: "연산 오류가 발생했습니다"
Source: "System.DirectoryServices"
StackTrace: " at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)rn at System.DirectoryServices.DirectoryEntry.Exists(String path)rn at CreateGroup.ADCreate.CreateDeptGroup() in c:\lotte\source\nets\coutomizition source\creategroup\adcreate.cs:line 54"
TargetSite: {System.Reflection.RuntimeMethodInfo}
AD 사용 개발중 발생하는 에러중 하나이다.
DirectoryEntry.Exists 명령어를 사용할때 발생하였다.
◇ 대처방법 ◇
1. 텔넷 접속이 가능한지 확인한다.
c: > telnet [대상 IP] 389
2. 개발 PC가 AD 도메인컨트롤에 가입되어있는지 확인한다.
같은 도메인으로 개발PC를 로그온해야한다.
도메인 권한으로 인한 문제인것 같다.
개발 PC를 AD가 설치되어 있는 도메인에 등록을하고
AD 로그인 계정으로 로그온을 하니 에러가 발생하지 않았다.