从服务调用LyncClient.GetClient()时出现异常 [英] Exception while calling LyncClient.GetClient() from a Service

查看:97
本文介绍了从服务调用LyncClient.GetClient()时出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows服务项目,该项目使用UCMA 3.0 SDK并监控来电以获取其来电显示。当我不向服务控制管理器注册它时,即从Visual Studio 2010调试它而不使用ServiceBase时,该服务正常工作。
但是,LyncClient.GetClient()调用会抛出"主机进程未运行"的异常。当我使用ServiceBase调用方法时。 Lync进程确实正在运行。我想知道这是否是因为线程问题。还有其他人有更多明确的答案吗?

解决方案

看起来你正在调用LyncClient.GetClient()。我认为这意味着这是一个Lync SDK问题。如果是这样,请在Lync客户端开发论坛中发布您的问题。
http://social.msdn.microsoft.com/Forums/en-US/ communicatorsdk /线程


I have a Windows service project that uses the UCMA 3.0 SDK and monitors incoming calls for their caller id. The service works fine when I don't register it with the service control manager, i.e. when debugging it from Visual Studio 2010 and not using ServiceBase. However, the LyncClient.GetClient() call throws an exception with "The host process is not running" when I use the ServiceBase call methodology. The Lync process is indeed running. I'm wondering if this is because of threading. Does anyone else have a more definitive answer?

解决方案

Hi, looks like you are calling LyncClient.GetClient(). I think that means this is a Lync SDK issue. If so, please post your question in the Lync Client Development forum. http://social.msdn.microsoft.com/Forums/en-US/communicatorsdk/threads


这篇关于从服务调用LyncClient.GetClient()时出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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