FIX: BUG: ADSI Cannot Access Metabase Unless User Is Logged on to Server


When you run an Active Directory Service Interfaces (ADSI) script, ADSI cannot accesses the metabase if the script that is running is in the context of a user who is not logged on to the server. Various errors may occur, depending on the architecture involved. For example, if a Microsoft Transaction Server (MTS) component is running under ASP, the following error message occurs:
Error Code -2146893811 0x8009000D "Key Does Not Exist"


Internet Information Server (IIS) stores much of its information in the IIS metabase. For example, in the following call, ADSI needs to access the metabase:

Set ParentObject = GetObject ("IIS://localhost/W3SVC/1/Root")

To access the metabase, ADSI needs certain entries from the HKEY_CURRENT_USERS registry key. If the code is running in the context of a user that has not logged on to the computer, this key is not loaded with the necessary information.


To resolve this problem, obtain the fix described in the following Microsoft Knowledge Base article:
223435 Error Code -2146893811 0x8009000D Key Does Not Exist


Microsoft has confirmed this to be a problem in Internet Information Server

ID članka: 243808 - posljednja izmjena: 14. velj 2017. - verzija: 1

Microsoft Internet Information Server 4.0

Povratne informacije