title: autodiscover service couldn't be located
body: <p>We are trying to move email from our premises to cloud and facing "autodiscover service couldn't be located" Error.  For some emails same code is working fine but facing issue with with random emails . Is there something missing in cloud migration .</p>
  
  <p>Below is my Code:</p>
  
  <p>_exchangeService = new ExchangeService(ExchangeVersion.Exchange2013);
                      _exchangeService.TraceEnabled = true;
                      _exchangeService.Credentials = new WebCredentials(_mailbox.EmailAddress, decryptedPassword);</p>
  
  <pre><code>             //   _exchangeService.EnableScpLookup = true;
                      _exchangeService.AutodiscoverUrl(_mailbox.EmailAddress, SslRedirectionCallback);
  </code></pre>
  
  <p>Any Help would be appreciated . </p>