While using my PowerPoint Add-in, some users get the following exception:
Error HRESULT E_FAIL has been returned from a call to a COM component.
It happens when trying to create a new presentation with Application.CommandBars.ExecuteMso("FileNew"), which is supposed to open the backstage tab.
Complications:
- The backstage is supported for the user (on PowerPoint 2016)
- Official Microsoft documentation states only the return of
E_FAILin case of failure, giving no further clues for C# as well as for VBA - I cannot reproduce the problem on any of the machines available to me
How can I debug and try to prevent this exception?