自定义 Lync 客户端启动失败

发布于 2024-10-24 04:30:54 字数 621 浏览 6 评论 0原文

我正在使用 Microsoft Lync 2010 API 编写自定义轻量级输入/输出板(又名状态、状态等)应用程序。它需要在启动/登录后运行,但在启动/重新启动机器后登录时我遇到了问题。我从 LyncClient.GetClient 方法收到以下错误

System.Runtime.InteropServices.COMException (0x800706BE):远程过程调用失败。 (HRESULT 异常:0x800706BE) 在 Microsoft.Office.Uc.IUCOfficeIntegration.GetInterface(String _version, OIInterface _interface) 在 Microsoft.Lync.Model.LyncClient.GetClient()

我的应用程序是从网络驱动器运行的 ClickOnce 应用程序。它仅在在线模式下可用。 .application 文件是从 netlogon 运行的批处理文件中调用的。如果我在计算机运行一段时间后运行批处理文件,效果很好。如果我注销然后重新登录,它也可以工作。因此,我假设调用 LyncClient.GetClient 方法时需要一项尚未启动的服务。

I'm writing a custom light-weight in/out board (AKA Status, Presence, etc.) application using the Microsoft Lync 2010 API. It needs to run after startup/login but I've ran into a problem when I login after I start/restart the machine. I get the following error from the LyncClient.GetClient method

System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed.
(Exception from HRESULT: 0x800706BE)
at Microsoft.Office.Uc.IUCOfficeIntegration.GetInterface(String _version, OIInterface _interface)
at Microsoft.Lync.Model.LyncClient.GetClient()

My application is a ClickOnce application that runs from a network drive. It's available only in Online mode. The .application file is called from a batch file that is run from netlogon. It works fine if I run the batch file after my computer has been running for a while. It also works if I log out and then log back in. Therefore I'm assuming that there is a service required that has not yet started when the LyncClient.GetClient method is called.

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

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

发布评论

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

评论(1

虐人心 2024-10-31 04:30:54

我同意这是您正在等待的服务,并且会冒险猜测“远程过程调用(RPC)”服务。这是启用 COM 通信的服务(即,它处理 COM 激活请求等)。

测试这一点很尴尬,因为服务控制管理器不允许您关闭该服务 - 它是一项关键服务,因为大量 Windows 都依赖 COM。

为了进行测试,您可以在代码中检查该服务的启动状态,然后仅在该服务启动时初始化 Lync。

I would agree that it's a service that you're waiting for, and would hazard a guess at the "Remote Procedure Call (RPC)" service. This is the service that enables COM communication (i.e. it handles COM activation requests, among other things).

It's awkward to test this, as Service Control Manager doesn't let you shut the service down - it's a critical service as large swathes of Windows rely on COM.

To test, you could check the startup status of the service in code, and then only initialise Lync when that service is started.

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