Will Martin
unread,Sep 15, 2025, 11:41:09 AM (20 hours ago) Sep 15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Excel-DNA
Hi Excel DNA Team,
I am working on a project that I have recently updated to v1.8 and from .Net 4.6.1 to 4.8. I ship this project via a NSIS installer my installing the packed .xll file and adding the appropriate registry keys under HKCU\Software\Microsoft\Office\[vers]\Excel\Options with an Open registry key to the related .xll path.
Since this update some users have experienced a COM/Ribbon error that usually presents as Excel crashing as soon as they try to open a workbook. This issue is not occurring for all users. It seems the issue does not appear when no other add-ins are active, but no single add-in is causing the issue, and it appears with different add-ins installed for different users. When I have been able to replicate the issue I see the Excel crash, and then open Excel in safe mode and open the .xll manually to see the below error. It does not appear that the packed .xll for my add in is being disabled as no add ins are listed in the disabled items dialogue.
ComAddIn [Error] The Ribbon/COM add-in helper required by add-in [add-in name] could not be registered.
This may be due to the helper add-in being disabled by Excel.
To repair, open Disabled items in the Options->Add-Ins page and re-enable target add-in, then restart Excel.
Error details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invoke Attr, Object target, Objet[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(Strin name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, Parameter Modifier[] modifiers, CultureInfo culture, String[] named Params)
at ExcelDna.Integration.ExcelCOmAddInHelper.LoadComAddIn(ExcelComAddIn addIn) : TargetInvocationException - Exception has been thrown by the target of an invocation.
Here are some questions for starters, but any help would be appreciated:
1) Are there issues with having multiple Excel-DNA add-ins that target various Excel-DNA and .Net versions? My users have several Excel-DNA add-ins and I do not have control over most of them.
2) Does a separate add-in need to registered for the COM/ribbon items in a packed .xll?
3) These errors only occurred after updating from v1.0 to v1.8, why are they appearing now?
Thanks,
Will