在过去两周内,当尝试为特定用户创建约会时,EWS会返回以下内容:
The specified object was not found in the store.
Can't connect to the mailbox of user Mailbox database guid: [xxxx]
because the ExchangePrincipal object contains outdated information.
The mailbox may have been moved recently.
这个邮箱已存在超过6年,我们以前从未遇到过这个问题。
对我来说最有趣的部分是错误消息中返回的GUID与用户邮箱的GUID不匹配。
我终于能够解决这个问题了。用户的邮箱/日历似乎有一套腐败或过时的规则。
我只需要使用以下方法从Powershell移动邮箱:
New-MoveRequest -Identity "username"
大约10分钟后,我检查了移动的状态,它已经完成。我测试了代码以创建与EWS的约会,它工作了!