简体   繁体   English

Lync客户端SDK报告错误的状态代码

[英]Lync client SDK reports wrong status code

My silverlight 5 application, running in IE, has successfully been integrated with the local Lync client for a year or two, happily fetching lych contacts. 我在IE中运行的silverlight 5应用程序已经成功地与本地Lync客户端集成了一两年,愉快地获取了lych联系人。 Now this is suddenly misbehaving. 现在,这突然出现了问题。 I get the status ClientState.SignedOut even though the lync user is currently signed in when my application starts up. 我的状态为ClientState.SignedOut即使我的应用程序启动时lync用户当前已登录

timer = new DispatcherTimer();
timer.Tick += delegate(object s, EventArgs args)
{
   LyncClient client = LyncClient.GetClient();
   if (client != null && client.State == ClientState.SignedIn)
   {
       timer.Stop();
       // do stuff
       //  --- never happens, client.state is SignedOut even though
       //      the lync client user is signed in :(

I have tried to wait and poll for status for a while after having created the lync client proxy. 创建lync客户端代理后,我尝试等待一段时间并轮询状态。 Didn't help. 没有帮助。 I also tried to subscribe to status changes and then sign the lync client out and in again while my appication is running. 我还尝试订阅状态更改,然后在我的应用程序运行时注销lync客户端,然后再次登录。 That did help for some users but is not a feasable solution. 这确实对某些用户有所帮助,但不是可行的解决方案。

My Lync client was recently upgraded to 'Skype for Business' (Microsoft Lync (c) 2013 (15.0.4737.1000), but things appearently did work after the initial upgrade, so it's unclear if this is the culprit. I've tried both the 2010 and the 2015 Lync Client SDK. Same strange behavhiour using both, 我的Lync客户端最近升级到了“ Skype for Business”(Microsoft Lync(c)2013(15.0.4737.1000)),但是在初次升级后似乎一切正常,因此尚不清楚这是否是罪魁祸首。 2010和2015 Lync Client SDK。同时使用这两种行为,

I'm stumped. 我很沮丧

Thanks, 谢谢,

Apparently this is a newly introduced bug in Windows/IE/Lync. 显然,这是Windows / IE / Lync中新引入的错误。 See my comments above for source and workaround. 请参阅我上面的评论以获取源代码和解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM