Microsoft KB Archive/243808

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

Article ID: 243808

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q243808



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.

Keywords: kbbug kbfix kbqfe kbmetabase KB243808

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.