Relative Content

Tag Archive for c#.netexceloffice-interopexcel-interop

Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IHostItemFactoryNoMAF’

Exception Message: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IHostItemFactoryNoMAF’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{**}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).