none
[E2010] [EWSMA] [C#] EnableSCPLookup in ExchangeService class RRS feed

  • Question

  • I am using code like the one below to get the EWS URL:

    svc.EnableScpLookup = false;
    svc.AutodiscoverUrl(mailbox);
    

    The above code works fine.

    My understanding is that a SCP Lookup is required to get the AutoDiscoverURL. Once the AutoDiscoverURL is known, we can use that to query the Internal and External URL for EWS.

    In the above code, I have turned SCP Lookup to false. How is the AutoDiscoverURL found without doing a lookup?

    I turned SCP Lookup to false. The AutoDiscoverUrl() method call performance improved by 66%. Curious to know how it all works.

    Monday, October 31, 2011 11:06 AM

Answers

  • Hi,

    there is a good explanation on how AutoDiscover works on MSDN:

    http://msdn.microsoft.com/en-us/library/ee332364(v=EXCHG.140).aspx, section "Calling Autodiscover".

    This should answer your questions.

    Kind regards,
    Henning

    If you get your question answered, please come back and mark the reply as an answer.
    If you are helped by an answer to someone else's question, please mark it as helpful.

    • Marked as answer by vijayst Monday, October 31, 2011 12:14 PM
    Monday, October 31, 2011 11:51 AM

All replies

  • Hi,

    there is a good explanation on how AutoDiscover works on MSDN:

    http://msdn.microsoft.com/en-us/library/ee332364(v=EXCHG.140).aspx, section "Calling Autodiscover".

    This should answer your questions.

    Kind regards,
    Henning

    If you get your question answered, please come back and mark the reply as an answer.
    If you are helped by an answer to someone else's question, please mark it as helpful.

    • Marked as answer by vijayst Monday, October 31, 2011 12:14 PM
    Monday, October 31, 2011 11:51 AM
  • thanks, it helped.

    ScpLookUp maybe safe. But it is a costly operation (especially if ScpLookup is not configured)

    Monday, October 31, 2011 12:15 PM