title: 'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API
body: <p>I am using  Auto discover service Url for a specified e-mail address.</p>
  
  <pre><code>ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010);
  Service.Credentials = new WebCredentials("username@domainname.com", "Password");
  Service.AutodiscoverUrl("username@domainname.com");
  Folder inbox = Folder.Bind(Service, WellKnownFolderName.Inbox);
  Console.WriteLine("The folder name is" + inbox.DisplayName.ToString());
  </code></pre>
  
  <p>If I do like this I'm gettin an error:</p>
  
  <blockquote>
    <p>The Autodiscover service couldn't be located</p>
  </blockquote>
  
  <p>What I have to do to avoid this error?</p>