Exchange 2010 EWS无法访问2007 MailBox - AutoDiscover?

时间:2012-04-10 19:08:20

标签: exchange-server

我的雇主使用的托管公司在周末升级到Exchange 2010。这导致我们使用的服务访问邮箱中断。托管公司说我们的邮箱仍然是2007年。当我现在尝试使用Exchange 2007 Webservice访问它们时,我收到以下错误:

  

客户端访问服务器版本与正在访问的资源的邮箱服务器版本不匹配。要确定用于访问资源的正确URL,请使用自动发现和资源的地址。

我已经针对此错误做了一些Google搜索,并找到了一些关于使用AutoDiscover解决此问题的帖子。我尝试了我发现here的Microsoft示例,但我不清楚控制台的输出告诉我的内容或我如何使用它。

看起来它会尝试点击某些网址,然后报告它找到的内容。我要么有例外,“无法找到电子邮件地址”,或“网站不匹配”

编辑:我得到了示例应用程序以返回一些信息。现在我的问题是,如何将此输出转换为访问我需要的邮箱?

以下是返回的属性列表,其中省略了实际值。

=? Trying 'Email@myDomain.com' at 'https://myDomain.net/Autodiscover/Autodiscover.xml'
User/DisplayName=
User/LegacyDN=
User/DeploymentId=
Account/AccountType=
Account/Action=
Account/Protocol/Type=
Account/Protocol/ASUrl=
Account/Protocol/DirectoryPort=
Account/Protocol/MdbDN=
Account/Protocol/OABUrl=
Account/Protocol/OOFUrl=
Account/Protocol/Port=
Account/Protocol/ReferralPort=
Account/Protocol/Server=
Account/Protocol/ServerDN=
Account/Protocol/ServerVersion=
Account/Protocol/UMUrl=
Account/Protocol/PublicFolderServer=
Account/Protocol/AD=
Account/Protocol/EwsUrl=
Account/Protocol/Type=
Account/Protocol/AuthPackage=
Account/Protocol/CertPincipalName=
Account/Protocol/DirectoryPort=
Account/Protocol/OABUrl=
Account/Protocol/Port=
Account/Protocol/ReferralPort=
Account/Protocol/Server=
Account/Protocol/SSL=
Account/Protocol/Type=
Account/Protocol/DirectoryPort=
Account/Protocol/Port=
Account/Protocol/ReferralPort=
Account/Protocol/External/OWAUrl[@AuthenticationMethod="Fba"]=
Account/Protocol/External/OWAUrl[@AuthenticationMethod="Fba"]=
Account/Protocol/Internal/OWAUrl[@AuthenticationMethod="Basic, Fba"]=
Account/Protocol/Internal/OWAUrl[@AuthenticationMethod="Basic, Fba"]=
Account/Protocol/Internal/OWAUrl[@AuthenticationMethod="Basic, Fba"]=
Account/Protocol/Internal/Protocol/Type=
Account/Protocol/Internal/Protocol/ASUrl=

有人能指出我正确的方向来解决这个问题吗?

另外,我无权对Exchange Server本身进行任何更改。

2 个答案:

答案 0 :(得分:1)

我通过谷歌搜索找到了答案。从"帐户/协议/ EwsUrl ="返回的URL属性给了我想要指向我的webservice的价值。

答案 1 :(得分:0)

我有同样的错误:

  

客户端访问服务器版本与邮箱服务器不匹配   正在访问的资源的版本

..但是EwsUrl是正确的

服务器平台已升级到2013,但目标邮箱仍处于2007模式。 解决方法是将邮箱迁移到2013并再次开始工作。 所以这是一个环境而不是代码修复。