Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) C#

0

Recently when I run this code I get the following error Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)). I have only recently started getting this issue. Basically when I run this code it checks if an addin is disabled if so then enable it. I'm not sure why I'm getting this error now.

My code is as follows

        foreach (COMAddIn currentAddIn in myApp.COMAddIns)
        {
            if (currentAddIn.ProgId == "Create.ExcelAddIn" && !currentAddIn.Connect)
            {

                    currentAddIn.Connect = true;
            }
       }
c#
asked on Stack Overflow Jun 19, 2017 by Craig Gallagher

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0