У меня есть этот кодслужба обмен Webservice AutoDiscover не смогла быть расположена
ExchangeService serviceInstance;
serviceInstance = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
serviceInstance.Credentials = new WebCredentials("Jacob.Alley", "*****", "emaildomain");
serviceInstance.TraceEnabled = true;
serviceInstance.AutodiscoverUrl("[email protected]");
и я получаю «сервис AutoDiscover не смог быть расположен» ошибка брошена. Вот след
`
Trying to call Autodiscover for [email protected] on https://emaildomain.com/autodiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="8" Time="2016-11-16 18:41:58Z"
POST /autodiscover/autodiscover.xml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0847.030
</Trace>
<Trace Tag="AutodiscoverRequest" Tid="8" Time="2016-11-16 18:41:58Z" Version="1
.00.0847.030">
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlo
k/requestschema/2006">
<Request>
<EMailAddress>[email protected]</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodisco
er/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
failed: WebException (The underlying connection was closed: Could not establis
trust relationship for the SSL/TLS secure channel.)
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
Trying to call Autodiscover for [email protected] on https://autodisc
ver.emaildomain.com/autodiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="8" Time="2016-11-16 18:41:58Z"
POST /autodiscover/autodiscover.xml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0847.030
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
failed: WebException (The remote name could not be resolved: 'autodiscover.emaildomain.com')
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
Trying to get Autodiscover redirection URL from http://autodiscover.emaildomain.com/autodiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
Request error: The remote name could not be resolved: 'autodiscover.emaildomain
com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
No Autodiscover redirection URL was returned.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
Trying to get Autodiscover host from DNS SRV record for emaildomain.com.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
DnsQuery returned error error 'DNS name does not exist' error code 0x0000232B.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
No appropriate SRV record was found.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="8" Time="2016-11-16 18:41:58Z">
No matching Autodiscover DNS SRV records were found.
</Trace>`
Я знаю, что у меня есть правильный адрес электронной почты/имя пользователя/пароль, но им не уверен, как расшифровать следы, или если есть somethign, что я делать неправильно.