DirectoryEntry 구성 IIS7에서 ADSI 오류 발생: 알 수 없는 오류(0x80005000)
1. 오류 상황
환경: win7+iis7.0
DirectoryEntry 구성 IIS7에 다음 오류가 있습니다
또는
다음 코드는 IIS6.0에서는 정상적으로 실행되지만 IIS7.0에서는 오류가 발생합니다.
System.DirectoryServices.DirectoryEntry iisServer; iisServer = new System.DirectoryServices.DirectoryEntry("IIS://localhost/W3SVC/1"); System.DirectoryServices.DirectoryEntry rootFolder = iisServer.Children.Find("Root","IIsWebVirtualDir");//此处抛出异常
예외 내용
[System.Runtime.InteropServices.COMException] {"알 수 없는 오류(0x80005000)"}
System.Runtime.InteropServices.COMException
알 수 없는 오류(0x80005000)
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.CheckIsContainer()
System.DirectoryServices.DirectoryEntries.Find(문자열 이름, 문자열 스키마ClassName)
2. 오류 분석
이 예외 코드는 IIS://localhost/W3SVC의 ADSI 공급자를 나타냅니다. /1이 존재하지 않거나 액세스할 수 없습니다.
IIS 관리자를 열면 서버의 로컬 호스트(즉, 기본 사이트)가 존재하여 실행되고 있는 것을 확인할 수 있으며 기본 사이트 ID는 실제로 1입니다. 이는 IIS://localhost의 ADSI 공급자에 문제가 있음을 나타냅니다.
3. 오류 원인
win7은 iis7을 사용하며 IIS 7에는 기본적으로 ADSI 공급자가 설치되어 있지 않습니다.
4. 솔루션
이 문제를 해결하려면 "IIS 메타베이스 및 IIS 6 구성 호환성"을 설치해야 합니다.
"제어판"->"프로그램 및 기능"->패널 왼쪽의 "Windows 기능 켜기/끄기"->"인터넷 정보 서비스"->"웹 관리 도구"-> "IIS 6 관리 호환성" -> "IIS 메타베이스 및 IIS 6 구성 호환성".
아래와 같습니다.
5. Windows Server 2008에서 이 오류가 발생하면 어떻게 해야 하나요?
Windows Server 2008에서 역할 서비스를 사용하여 "IIS 메타베이스 및 IIS 6 구성 호환성"을 설치한 후 다음 오류가 발생할 수 있습니다.
[System.Runtime.InteropServices.COMException ] { "액세스가 거부되었습니다.rn"} System.Runtime.InteropServices.COMException
ErrorCode 0x80070005
액세스가 거부되었습니다.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System .DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.CheckIsContainer()
at System.DirectoryServices.DirectoryEntries.Find(String name , String SchemaClassName)
Windows Server 2008이 UAC(사용자 계정 제어)에 의해 잠겨 있기 때문입니다. 관리자(Administrator) 계정으로 이 프로그램을 실행해야 합니다. 프로그램에는 다음과 같은 권한이 있습니다: 서비스로 로그온"/ "일괄 작업으로 로그온"
위는 DirectoryEntry 구성 IIS7에서 ADSI 오류 오류를 해결하는 방법이며, 더 나아가 이 문제는 Windows에서 발생합니다. Server 2008 이 오류에 대한 솔루션이 이러한 종류의 문제를 해결하는 데 모든 사람에게 도움이 되기를 바랍니다.
DirectoryEntry 구성의 ADSI 오류: 알 수 없는 오류(0x80005000)에 대한 자세한 내용은 다음을 참조하세요. PHP 중국어 웹사이트!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제









