LyncClient.GetClient()。Self.GetPhone()*有时*抛出一个ItemNotFoundException? [英] LyncClient.GetClient().Self.GetPhone() *sometimes* throws an ItemNotFoundException?

查看:47
本文介绍了LyncClient.GetClient()。Self.GetPhone()*有时*抛出一个ItemNotFoundException?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我似乎从以下调用中得到一个ItemNotFoundException:

It seems sometimes I am getting an ItemNotFoundException from the following call:

LyncClient.GetClient()。Self.GetPhone(ContactEndpointType.WorkPhone)

LyncClient.GetClient().Self.GetPhone(ContactEndpointType.WorkPhone)

即使定义了WorkPhone。  我无法随意重现错误,所以我不确定发生了什么。  当然,如果未定义workPhone,我也会收到此异常。

even though the WorkPhone is defined.  I can't reproduce the error at will, so I'm not really sure what is happening.  Of course, I also get this exception when the workPhone is not defined.

关于我应该寻找什么的任何想法?

Any ideas on what I should be looking for?

谢谢

推荐答案

您是否在日志中捕获Lync事件?如果打开该选项,也可能在Windows事件日志中捕获事件。 如果尚未启用这两种类型的日志记录,请将其打开。再次抛出ItemNotFound异常时,将在日志中捕获详细信息
。 您可以通过阅读日志找到答案。如果没有,那么您应该联系Lync开发人员支持团队。

Are you capturing Lync events in the log? There can also be events captured in the Windows Event log if you turn that option on. If you have not enabled both types of logging, then turn them on. When the ItemNotFound exception is thrown again, the details will be captured in the logs.  You may find the answer by reading the logs. If not, then you should contact the Lync Developer Support team.


这篇关于LyncClient.GetClient()。Self.GetPhone()*有时*抛出一个ItemNotFoundException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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