ActiveDirectoryMembershipProvi­der Schema Mappings Not Found

Posted on 2006-04-14
Last Modified: 2008-01-16
I am trying to enable password retrieval using the AD Membership
Provider with Windows Server 2003 as my AD machine.  I have followed
the examples out there and have been able to update the AD schema with
the 5 new attributes and add them to the User class.  However, when
trying to run the website I get errors that the following three
attributes are not part of the user class, but they really are.  I have
had this problem on 2 seperate machines.  The strange thing is that it
does not give me the error on the other 2 attributes that I have added
(passwordQuestion and passwordAnswer).


I read somewhere that the ActiveDirectoryMembershipProvider hard-codes
the schema, which would make it pretty much useless to anyone not using
the standard schema.  I cannot believe this though because the example
from MSDN on configuring password retrieval instructs you to add
attributes and then reference them in the web.config file, so I don't
really buy this explanation of the problem.

Can anyone help me to shed some light on this issue, it is driving me

Question by:jfkrueger
    LVL 2

    Author Comment

    Well I figured this one out.  It appears that Visual Studio 2005 is caching the Schema.  It looks like that when VS 2005 starts up and you load a project with something in your web.config file that maps attributes to the schema, the schema is loaded into memory.  If you make any changes to the schema, you have to close your project (or possibly shut down VS 2005) and re-start.  You will then be able to have access to the attributes.

    Accepted Solution

    Closed, 250 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now