How can we help you today? How can we help you today?

SmartAssembly breaks PowerPoint COM API

We have an VSTO-based add-in that we want to obfuscate. The obfuscated code reports the following error: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to event interface type 'Microsoft.Office.Interop.PowerPoint.PresEvents_Event'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{9826398E-2574-3EDD-9717-A913EE28A41D}' failed due to the following error: 'No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))' and the COM component does not support the source interface with IID '{91493463-5A91-11CF-8700-00AA0060263B}'.

  at System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags)

  at Microsoft.Office.Interop.PowerPoint._Application.get_ActivePresentation()

  at ReproSmartAssembly.Ribbon.HandleNewButtonClick(IRibbonControl control)
We have configured SmartAssembly to exclude the PowerPoint specific types from obfuscation. We can send a reproduceable example (PowerPoint VSTO add-in and the SmartAssembly project).

Dan V.
0

Add comment

Please sign in to leave a comment.