【问题标题】:Exchange Web Service is Supported For Exchange2007_SP3Exchange2007_SP3 支持 Exchange Web 服务
【发布时间】:2013-05-25 23:29:00
【问题描述】:

我正在尝试使用 EWS 获取收件箱文件夹信息。

 ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);**//Here Exchange2007_SP3 version not coming.Only(Exchange2007_SP1,Exchange2010,Exchange2010_SP1,Exchange2010_SP2) are available**
 service.Credentials = new WebCredentials(UserName, Password, DomainName);
 service.Url = new Uri("HTTPS://" + ServerName + "/EWS/Exchange.asmx");
 Folder rootfolder = Folder.Bind(service, WellKnownFolderName.Inbox);**//Error Arises**
 foreach (Folder folder in rootfolder.FindFolders(new FolderView(int.MaxValue)))
 {
 }

我出错了: 客户端访问服务器版本与访问资源的邮箱服务器版本不匹配。使用 AutoDiscover 和正在访问的资源的地址来确定用于访问指定资源的正确 URL。

 If i use autodiscover service , For that to error arises.

 service.AutodiscoverUrl("adminuser@Domain.com",RedirectionUrlValidationCallback);

我出错了: 找不到自动发现服务。

【问题讨论】:

    标签: c# exchangewebservices exchange-server-2007 ews-managed-api


    【解决方案1】:

    需要为自动发现设置一个 dns 注册。也许这就是你的问题。

    autodiscover.emailsrvr.com.

    作为 emailsrvr.com 的域名交换正在运行。

    这里有更多信息:

    Setup a DNS record for Autodiscover

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-16
      相关资源
      最近更新 更多