I have a app, which work fine on the develop computer, but on the user's PC, it doesn't work well, and throw some error message like this:
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)
The computers both run Windows 10 X64 1703
my app is written in C# and C++ with Visual Studio
the client PC does not have VS installed, the dev PC installed VS2017&2015
User contributions licensed under CC BY-SA 3.0