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

ID: Q243808


The information in this article applies to:
  • Microsoft Internet Information Server version 4.0


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:

Q223435 Error Code -2146893811 0x8009000D Key Does Not Exist


STATUS

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

Additional query words:

Keywords : kbGrpInetServer kbDSupport
Version : winnt:4.0
Platform : winnt
Issue type : kbbug


Last Reviewed: November 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.