Microsoft Knowledge Base Email Alertz

(327437) - Explains that after a server is restarted or a Web service is restarted, an application that ran correctly before the restart now does not run. You may receive an 0x8000500C error message.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 327437 - Last Review: June 1, 2004 - Revision: 1.2

An application that ran correctly before a restart now does not run because the Active Directory schema is not correctly cached by ADSI

This article was previously published under Q327437

SYMPTOMS

After a server is restarted or a Web service is restarted, an application that ran correctly before the restart now does not run. You may receive the following error message:
0x8000500C, The property in cache cannot be converted from native datatype

CAUSE

The Active Directory directory service schema is not correctly cached by ADSI. For additional information about how ADSI caches the schema of an LDAP server, click the following article number to view the article in the Microsoft Knowledge Base:
251189  (http://kbalertz.com/Feedback.aspx?kbNumber=251189/ ) Locating an LDAP server schema cached by ADSI
The previous article describes how ADSI tries to cache the schema one time for each process. This information is important because Microsoft ASP.NET runs under a single Aspnet_wp.exe process in Microsoft Windows 2000. If you have some Web users who experience the double-hop authentication limitation and some Web users who do not experience the double-hop authentication limitation, this problem may be caused by the first user who runs an ASP.NET page that uses ADSI on that server.

Typically, you notice that an application works by launching a Web browser locally. The Web site is now live and the Web site works until the server is restarted or the Web service is restarted. When the server is restarted or the Web service is restarted, the ASP.NET application stops responding. This problem occurs because the user who is experiencing the double-hop authentication limitation is the user who accessed the server first, and ADSI did not cache the schema correctly.

The schema that ADSI uses is stored in the cn=Aggregate object in the schema namespace. The Pre-Windows 2000 Compatible Access built-in group does not have permissions to this aggregate object. The Everyone principal also does not have permissions to this aggregate object. Therefore, schema information is not accessible. There is a property in the cache that was retrieved from the server, and ADSI knows nothing about this property. Because ADSI cannot determine the type of the property, ADSI cannot convert that property to a string, to an integer, to a security descriptor, or to other data formats, and you may receive the error message that is mentioned in the "Symptoms" section.

RESOLUTION

For additional information about possible resolutions to this problem, including using Kerberos delegation, see the Windows 2000 Resource Kit.

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
264921  (http://kbalertz.com/Feedback.aspx?kbNumber=264921/ ) How IIS authenticates browser clients
283201  (http://kbalertz.com/Feedback.aspx?kbNumber=283201/ ) How to use delegation in Windows 2000 with COM+
317012  (http://kbalertz.com/Feedback.aspx?kbNumber=317012/ ) Process and request identity in ASP.NET

STATUS

This behavior is by design.

MORE INFORMATION

You may not receive a permission denied entry or a property not found entry in the cache error log. Typically, this problem occurs because of how Active Directory directory service is installed. When the first domain controller in the domain is promoted, the Active Directory Installation Wizard prompts you for access permissions to verify the following:
  • Are the access permissions compatible with Microsoft Windows NT 4.0?
  • Are the access permissions compatible with Windows 2000?
If the access permissions are not changed, the access permissions are compatible with Windows NT 4.0. This adds the security principal to the Pre-Windows 2000 Compatible Access built-in group.

For additional information, see the "Directory Service Configuration" topic in the Windows 2000 Resource Kit.

If you add the security principal to the Pre-Windows 2000 Compatible Access built-in group, this is significant. By default, the Pre-Windows 2000 Compatible Access group has List Contents permissions and the Read All Properties permissions for many objects in the directory. Because an anonymous user accesses the Active Directory directory service with Everyone permissions, if you select the Windows NT 4.0 option during install, you receive many attributes returned in a query.

APPLIES TO
  • Microsoft Internet Information Services 5.0
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
Keywords: 
kbprb KB327437
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate