找不到自动发现服务 [英] The Autodiscover service couldn't be located

查看:77
本文介绍了找不到自动发现服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用Exchange Web服务(EWS 1.1 API)发送电子邮件的代码.如果我使用硬编码的参数值,也不例外,例如:

I have code to send email using Exchange Web Services (EWS 1.1 API). There is no exception if I use the hardcoded parameter values, like:

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

但是,如果我尝试使用变量,那么在发现URL时会出错,找不到自动发现服务".

But If I try to use a variable then I am getting error while discovering URL, "The Autodiscover service couldn't be located".

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

是否可以通过autodiscoverurl方法使用变量?我在做什么错了?

Is there any way to use variables with autodiscoverurl method? What am I doing wrong?

桑杰(Sanjay)

推荐答案

这不太可能引起此问题.通常,如果自动发现失败,则是由于无效的凭据或网络连接问题.

It's very unlikely that this is causing the problem. Typically, if AutoDiscover fails, it's because of invalid credentials or network connectivity issues.

在ExchangeService实例上启用跟踪( MSDN文章)以查看发生了什么情况.

Enable tracing on the ExchangeService instance (MSDN article) to see what is going on.

这篇关于找不到自动发现服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆