首页 文章

自定义Lync客户端在启动时失败

提问于
浏览
3

我在启动/重启机器后登录时遇到了问题 . 我从 LyncClient.GetClient 方法得到以下错误

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

我的应用程序是一个从网络驱动器运行的ClickOnce应用程序 . 假设在调用 LyncClient.GetClient 方法时尚未启动的服务需要'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 .

1 回答

  • 3

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

    测试这个很尴尬,因为服务控制管理器不会让你关闭服务 - 这是一个关键服务,因为大量的Windows依赖于COM .

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

相关问题