EWS C# 附件和已处理文件夹的问题

发布于 2024-12-01 03:48:57 字数 1162 浏览 0 评论 0原文

我有下一个问题:在商店中找不到指定的对象。

" × Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()\r\n × Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()\r\n в Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.Execute()\r\n Microsoft.Exchange.WebServices.Data.ExchangeService.InternalGetAttachments(IEnumerable1 个附件、Nullable1 bodyType、IEnumerable1 个附加属性、ServiceErrorHandling errorHandling)\r\n в Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(附件附件、Nullable1 bodyType、IEnumerable1 otherProperties)\r\n в Microsoft.Exchange.WebServices.Data.Attachment.InternalLoad(Nullable1 bodyType, IEnumerable1 otherProperties)\r\n в Microsoft.Exchange.WebServices.Data.Attachment.Load()\r\n в Microsoft.Exchange.WebServices.Data.FileAttachment.Load(流流)\r\n в exm.Program.Main() в D:\exm\exm\Program.cs:строка 406"

我读到这可能是由于移动项目引起的,这就是 ID 动态变化的原因,但是,我没有在“foreach”中进行任何更改,我正在获取附件并加载它。到 Stream 并且只有在它移动之后,但是我在加载流时捕获了异常,而且我什至没有到达 MoveItem() ,我之前捕获了异常...

另外,我不明白什么是“已处理”文件夹?在“WellKnownItems”枚举中看不到它。

I have the next problem: The specified object was not found in the store.

" в Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()\r\n в Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()\r\n
в Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.Execute()\r\n
в Microsoft.Exchange.WebServices.Data.ExchangeService.InternalGetAttachments(IEnumerable
1 attachments, Nullable1 bodyType, IEnumerable1 additionalProperties, ServiceErrorHandling errorHandling)\r\n
в Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(Attachment attachment, Nullable1 bodyType, IEnumerable1 additionalProperties)\r\n
в Microsoft.Exchange.WebServices.Data.Attachment.InternalLoad(Nullable1 bodyType, IEnumerable1 additionalProperties)\r\n в Microsoft.Exchange.WebServices.Data.Attachment.Load()\r\n
в Microsoft.Exchange.WebServices.Data.FileAttachment.Load(Stream stream)\r\n в exm.Program.Main() в D:\exm\exm\Program.cs:строка 406"

I have read that it may be caused of moving item, and that's why ID is dynamically changing! But, I didn’t make any changing at in “foreach” I'm getting attachments and Load it to Stream and only after it moving, but exception I caught when I load stream and I don't even get to MoveItem() , I caught exception earlier...

Also, I don't understand what is “Processed” folder? I can't see it in "WellKnownItems" enumeration.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒人说梦 2024-12-08 03:48:57

Ews库不能很好地工作,如果你有相当旧的outlook交换服务器,例如,这个库在2007版本中工作得非常糟糕,但在2010版本中工作得很好,有些方法在这个库中确实不起作用,对我来说它更好不要使用这个库,尝试找到一些非常好的第三方库,人们使用它或者尝试学习较低级别的网络编程(tcp/ip),然后手动构建每个请求而不使用这个库,当然有如果您的系统管理员禁用了 POP/IMAP/SMTP 方法来获取/发送邮件并只允许您通过 OWA 或 LDAP 访问邮箱,则可能会出现一些问题...

Ews library doesn't work well, if you have rather old outlook exchange server, for example, this lib works very bad with 2007 version, but good with 2010, some methods really don't work in this lib, as for me it's better not to use this lib, try to find some 3-rd party lib, which is very good and people use it or try to learn network programming on lower level (tcp/ip) and then build each request manually and not using this lib, of course there could be some problems , if your system administrator disabled POP/IMAP/SMTP methods to get/send mails and give you only OWA or LDAP access to mailboxes...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文