News for the ‘Uncategorized’ Category

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

 ASP |  copy code |? 
01
    <membership defaultProvider="MyADMembershipProvider" >
02
      <providers>
03
        <add name="MyADMembershipProvider" enableSearchMethods="true"
04
        type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, &#xD;&#xA;        PublicKeyToken=b03f5f7f11d50a3a"
05
        connectionStringName="ADConnectionString"
06
        attributeMapUsername="sAMAccountName"
07
        connectionUsername="Domain\UserName"
08
        connectionPassword="PassWord"/>
09
      </providers>
10
    </membership>
11
Posted: October 29th, 2009
Categories: Uncategorized
Tags:
Comments: No Comments.