我有一个使用 Microsoft Lync 2010 SDK 的 Windows 服务。当我在本地运行服务时,一切似乎都按预期运行。当我尝试将代码部署到 VM 时,当我尝试启动服务时,它会出错说
The Foo service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
查看事件查看器,我看到一个异常
Service cannot be started. Microsoft.Lync.Model.LyncClientException: Generic COM Exception. Code is 0x80080005.
at Microsoft.Lync.Model.LyncClient.EnsureOI()
at Microsoft.Lync.Model.LyncClient.GetClient()
我尝试在 VM 上安装 Visual Studio 和 windows lync 2010 SDK,但这也没有解决问题。还有什么我应该尝试的吗?
编辑:
重新启动 VM 和重新启动 lync 客户端的组合似乎可以解决问题,但这是最不令人满意的解决方案。