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

SYMPTOMS

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"

CAUSE

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.

RESOLUTION

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

STATUS

Microsoft has confirmed this to be a problem in Internet Information Server
4.0.
Propriétés

ID d'article : 243808 - Dernière mise à jour : 14 févr. 2017 - Révision : 1

Microsoft Internet Information Server 4.0

Commentaires