title: Active Directory membership provider using LDAP
body: <p>I am working on a school assignment where we handle logins to a web application written in asp.NET using Active Directory. Our Active Directory is installed on a virtual machine on Azure.</p>
  
  <p>When trying to login, I am presented with the following error: <img src="https://i.imgur.com/GuFYX1u.png" alt="http://i.imgur.com/GuFYX1u.png"></p>
  
  <p>I have checked my connection string multiple times, and can't seem to get it to work.</p>
  
  <p>Currently, I have the following connection string:</p>
  
  <pre><code>&lt;add name="ADConnectionString" connectionString="LDAP://ictforevents1.cloudapp.net/DC=ictforevents1,DC=cloudapp,DC=net" /&gt;
  </code></pre>
  
  <p>The DNS name assigned to our virtual machine is ictforevents1.cloudapp.net, which is also the domain I set up in the Active Directory setup wizard.</p>
  
  <p>Using the data in the connection string above, I can connect to the AD using LDAP Admin.</p>
  
  <p>How to fix the error?</p>