在EWS项目更新后,该项目无法保存在Outlook中 [英] The item could not be saved in Outlook after EWS item update

查看:86
本文介绍了在EWS项目更新后,该项目无法保存在Outlook中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过EWS在后台更新Outlook联系人项目时遇到问题。更新由具有模拟权限的服务帐户执行,并且工作正常。现在的问题是:更新后,当用户在Outlook中打开联系人项目并想要保存更改时,他/她会收到错误消息:项目无法保存,因为它已被其他用户更改。然后,用户可以保存该项目的副本,该副本非常糟糕,并且会在我们的应用程序中导致其他问题。如果用户重新启动Outlook它运行正常,那么Outlook必须存在与Exchange无法同步的问题。
我们遇到了Outlook 2003的问题,还没有用2007测试它。有人知道吗?

I'm having a problem with updating Outlook contact items in the background via EWS. The update is performed by a service account with impersonation rights and it works fine. Now the problem: After the update, when the User opens the contact item in Outlook and wants to save changes, he/she gets the error message: The item could not be saved because it has been changed by another user. The user can then save a copy of the item which is really bad and would cause other problems in our application. If the user restarts Outlook it works fine so there must be an issue with outlook not being en sync with Exchange.
We encountered the problem with Outlook 2003 and have yet to test it with 2007. Anybody got an idea?

推荐答案

我怀疑这是一个时间问题。使用EWS更新项目后,有一段时间Outlook在其邮箱的本地副本中没有该项目的最新版本。如果用户在此期间尝试更新项目,您将收到您提及的错误。解决方案是等待一段时间,直到Outlook刷新其项目副本。您也可以通过点击发送/接收来手动触发。
I suspect this is a timing issue. After the item is updated with EWS, there is a period of time during which Outlook does not have the latest version of the item in its local copy of the mailbox. If the user tries to update the item during that time, you will get the error you mention. The solution is to wait a little while until Outlook has refreshed its copy of the item. You can also trigger this manually by hitting send/receive.


这篇关于在EWS项目更新后,该项目无法保存在Outlook中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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