Could not find autodiscover service

I have code for sending email using Exchange Web Services (EWS API 1.1). There is no exception if I use hard-coded parameter values, for example:

service.AutodiscoverUrl("me@mydomain.com",
    delegate
    {
    return true;
    });

But if I try to use a variable, I get an error when I find the URL: "Autodiscover service could not be found."

string userName = "me@mydomain.com";
service.AutodiscoverUrl(userName,
    delegate
    {
    return true;
    });

Can I use variables with the autodiscoverurl method? What am I doing wrong?

Sanjay

+5
source share
2 answers

It is very unlikely that this is causing the problem. Typically, if AutoDiscover fails, it is due to incorrect credentials or network connectivity issues.

ExchangeService ( MSDN), , .

+8

, , .

, TLS 1.2, EWS TLS 1.0. - EWS , ( ) - , TLS 1.0, , TLS 1.2, . TLS 1.0 (HKLM\System\CCS\Services\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client, DWORD "Enabled", 0x1, . .

+1

All Articles