Asp.net Error: The Active Directory membership provider has not been configured to support search methods


Solution for the error:
The following message may help in diagnosing the problem: The Active Directory membership provider has not been configured to support search methods.

This error usually displayed when Active directory is choosen to get ASP.net based website members
Just add : enableSearchMethods=”true” in the web.config file as detailed below

<membership defaultProvider="MyADMembershipProvider" >
      <providers>
        <add name="MyADMembershipProvider" enableSearchMethods="true"
        type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, &#xD;&#xA;        PublicKeyToken=b03f5f7f11d50a3a"
        connectionStringName="ADConnectionString"
        attributeMapUsername="sAMAccountName"
        connectionUsername="Domain\UserName"
        connectionPassword="PassWord"/>
      </providers>
    </membership>


Posted: October 29th, 2009
Categories: Asp.net
Tags:
Comments: No Comments.