title: Error: Only LDAP Connection Strings are Supported against Active Directory
body: <p>I have the following ASP.NET Membership section defined in the Web.config file:</p>
  
  <pre><code>&lt;membership defaultProvider="AspNetActiveDirectoryMembershipProvider"&gt;
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add connectionStringName="ADService" connectionUsername="umanage"
        connectionPassword="letmein" enablePasswordReset="true" enableSearchMethods="true"
        applicationName="uManage" clientSearchTimeout="30" serverSearchTimeout="30"
        name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;
    &lt;/providers&gt;
  &lt;/membership&gt;
  </code></pre>
  
  <p>The Connection string looks like this:</p>
  
  <pre><code>&lt;add name="ADService" connectionString="ldap://familynet.local" /&gt;
  </code></pre>
  
  <p>Whenever I call the following code:</p>
  
  <pre><code>Membership.GetAllUsers();
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. </p>
    
    <p>Parser Error Message: Only LDAP connection strings are supported against Active Directory and ADAM.</p>
  </blockquote>
  
  <p>I don't understand why the system is claiming the LDAP connection string is bad because it is in fact a valid LDAP string as specified by the MSDN documentation.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx</a></p>
  
  <p>Any ideas?</p>