none
"The Autodiscover Server couldn't be located" error RRS feed

  • Question

  • When attempting to use the currently logged on users credential I consistently get the "The Autodiscover Server couldn't be located" error.  The code is as follows:

        AutodiscoverRedirectionUrlValidationCallback cb =
            new AutodiscoverRedirectionUrlValidationCallback(AdUrlCb);

        ExchangeService service =
            new ExchangeService(ExchangeVersion.Exchange2010_SP2);
           
        service.UseDefaultCredentials = true;
        service.TraceEnabled = true;
        service.TraceListener = new FileBasedTraceListener();

        // ERROR on this line after the specified callback has been called twice
        service.AutodiscoverUrl("allenh@microsoft.com", cb);

    This same code works fine if I replace the service.UserDefaultCredentials property set with the following line:

        service.Credentials = new WebCredentials("allenh@microsoft.com", "**********");  // ****** isn't the actual password

    Thanks,

    allen

    Tuesday, May 29, 2012 5:58 PM

Answers

  • Answer received from Exchange developer:

    From: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Sent: Tuesday, May 29, 2012 11:47 AM
    To: Allen Herring
    Subject: RE: "The Autodiscover Server couldn't be located." error

    Hi Allen, I believe that is expected behavior. Your mailbox is in the cloud (MSIT production tenant or SPROD), and NTLM does not work there. You have correctly identified the workaround, which is to provide explicit credentials.

    Tuesday, May 29, 2012 7:18 PM

All replies

  • Answer received from Exchange developer:

    From: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Sent: Tuesday, May 29, 2012 11:47 AM
    To: Allen Herring
    Subject: RE: "The Autodiscover Server couldn't be located." error

    Hi Allen, I believe that is expected behavior. Your mailbox is in the cloud (MSIT production tenant or SPROD), and NTLM does not work there. You have correctly identified the workaround, which is to provide explicit credentials.

    Tuesday, May 29, 2012 7:18 PM
  • hi Michael,

    i have the same error "The Autodiscover Server couldn't be located".

    i can't locat the mail box.

    How can i resolve this error ?

    thanks.


    Monday, December 23, 2013 3:01 PM