The Ribbon/COM add-in helper required by add-in Add-In could not be registered.

148 views
Skip to first unread message

alexs...@gmail.com

unread,
May 21, 2018, 10:54:12 AM5/21/18
to Excel-DNA
Hello

Please help me. Suddenly I'v got this error. This error occurs ONLY if i load add in from Visual Studio in debug mode. 
Ribbon doesn't initialised, but UDF function work well.

BUT!! when I load compiled .dll (from Debug folder) everythings works OK, no error, and ribbon initialised.

ComAddIn [Error] The Ribbon/COM add-in helper required by add-in ClassLibrary2 Add-In could not be registered.

This is an unexpected error.
Error details: System.Reflection.TargetInvocationException: 
 ---> System.Runtime.InteropServices.COMException: Operation Interrupt (Exceprion HRESULT: 0x80004004 (E_ABORT))
   -----
   in System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   in System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   в ExcelDna.Integration.ExcelComAddInHelper.LoadComAddIn(ExcelComAddIn addIn) : TargetInvocationException - Caller make an exception

Govert van Drimmelen

unread,
May 21, 2018, 10:58:19 AM5/21/18
to exce...@googlegroups.com

Maybe the add-in has been disabled by Excel.

Check under File->Options->Add-Ins, Manage: Disabled Items.

 

-Govert

--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.

Crispin Kingsly

unread,
May 21, 2018, 11:41:30 AM5/21/18
to Excel-DNA
Your add-in may be in disable state

alexs...@gmail.com

unread,
May 21, 2018, 12:12:58 PM5/21/18
to Excel-DNA
That's it! Thank  yoy very much!!!

понедельник, 21 мая 2018 г., 17:54:12 UTC+3 пользователь alexs...@gmail.com написал:

Govert van Drimmelen

unread,
May 21, 2018, 12:17:32 PM5/21/18
to exce...@googlegroups.com

Two ways this can happen:

 

  • Unhandled exceptions thrown from ribbon callback methods
  • Terminating Excel during a ribbon callback method (mostly while debugging)

 

-Govert

 

 

From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of alexs...@gmail.com


Sent: 21 May 2018 18:13
To: Excel-DNA <exce...@googlegroups.com>

--

Reply all
Reply to author
Forward
0 new messages