我的雇主使用的托管公司在周末升级为Exchange 2010。这导致我们使用访问邮箱的服务中断。托管公司说我们的邮箱仍然是2007年。在尝试使用Exchange2007Webservice访问它们时,我得到以下错误:
客户端访问服务器版本与正在访问的资源的邮箱服务器版本不匹配。若要确定用于访问资源的正确URL,请使用“自动发现”和资源的地址。
我已经对这个错误做了一些谷歌搜索,并找到了一些关于使用AutoDiscover来解决这个问题的帖子。我尝试了微软的例子,我发现了这里,但是我不清楚控制台的输出告诉我什么或者我是如何使用它的。
它看起来像是尝试点击一些URL,然后报告它发现了什么。我要么有例外,“找不到电子邮件地址”,要么有“站点错配”。
编辑:我得到了示例应用程序来返回一些信息。现在我的问题是,如何将这个输出转化为访问我需要的邮箱?
以下是返回的属性列表,其中省略了它们的实际值。
=? 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本身进行任何更改。
发布于 2012-04-12 20:36:34
我通过更多的搜索找到了答案。从"Account/Protocol/EwsUrl=“属性返回的URL给出了我想要指向我的webservice的值。
发布于 2014-04-11 04:49:07
我也犯了同样的错误:
客户端访问服务器版本与正在访问的资源的邮箱服务器版本不匹配
..but EwsUrl是正确的
服务器平台已升级到2013年,但目标邮箱仍处于2007年模式。修复方法是将邮箱迁移到2013年,然后它又开始工作了。所以这是一种环境修复,而不是代码修复。
https://stackoverflow.com/questions/10094889
复制相似问题