EWS C# 附件和已处理文件夹的问题
我有下一个问题:在商店中找不到指定的对象。
" × 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 个附件、Nullable1 bodyType、IEnumerable
1 个附加属性、ServiceErrorHandling errorHandling)\r\n в Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(附件附件、Nullable1 bodyType、IEnumerable
1 otherProperties)\r\n в Microsoft.Exchange.WebServices.Data.Attachment.InternalLoad(Nullable1 bodyType, IEnumerable
1 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
1 attachments, Nullable
в Microsoft.Exchange.WebServices.Data.ExchangeService.InternalGetAttachments(IEnumerable1 bodyType, IEnumerable
1 additionalProperties, ServiceErrorHandling errorHandling)\r\n
в Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(Attachment attachment, Nullable1 bodyType, IEnumerable
1 additionalProperties)\r\n
в Microsoft.Exchange.WebServices.Data.Attachment.InternalLoad(Nullable1 bodyType, IEnumerable
1 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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...