首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到Exchange Webservice服务AutoDiscover服务

找不到Exchange Webservice服务AutoDiscover服务
EN

Stack Overflow用户
提问于 2016-11-17 02:46:36
回答 1查看 1K关注 0票数 0

我有这个代码

代码语言:javascript
复制
ExchangeService serviceInstance;
            serviceInstance = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
            serviceInstance.Credentials = new WebCredentials("Jacob.Alley", "*****", "emaildomain");
            serviceInstance.TraceEnabled = true;
            serviceInstance.AutodiscoverUrl("Jacob.Alley@emaildomain.com");

我得到了"AutoDiscover服务无法定位“的错误抛出。这就是轨迹

`

代码语言:javascript
复制
Trying to call Autodiscover for Jacob.Alley@emaildomain.com 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>Jacob.Alley@emaildomain.com</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 Jacob.Alley@emaildomain.com 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>`

我知道我有正确的电子邮件地址/用户名/密码,但我真的不确定如何破解跟踪,或者是否有什么地方我做错了。

EN

回答 1

Stack Overflow用户

发布于 2016-11-17 09:25:57

如果查看跟踪,就会发现没有为自动发现配置DNS记录,例如“无法解析远程名称”

Active Directory的SCP查找成功,但其尝试使用的URL与Web服务器上的SSL证书不匹配“(基础连接已关闭:无法建立SSL/TLS安全通道的信任关系”。如果这只是一个开发服务器,您可以通过使用SSL绕过来忽略该错误,例如

代码语言:javascript
复制
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
(se, cert, chain, sslerror) =>
    {
        return true;
    };

您可以使用https://testconnectivity.microsoft.com/在外部测试自动发现

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40639929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档