客户端PC上的错误:“无法转换类型的COM对象”

时间:2019-07-16 07:30:04

标签: .net com

我有一个应用程序,在开发计算机上运行正常,但是在用户的PC上运行不正常,并抛出了如下错误消息:

MyApp.Logger.dll: System.InvalidCastException: Unable to cast COM object
 of type 'MyApp.LgFormatContextClass' to interface type MyApp.ILgFormatContext'.

This operation failed because the QueryInterface call on the COM component for
 the interface with IID '{B9FB3391-0032-11E4-85BF-5CF9DD7664F7}' failed due to
 the following error: No such interface supported (Exception from HRESULT: 
0x80004002 (E_NOINTERFACE)).
   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr 
pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)

计算机均运行Windows 10 X64 1703

我的应用是使用Visual Studio的C#和C ++编写的

客户端PC未安装VS,开发PC已安装VS2017&2015

0 个答案:

没有答案