Hello,
I have a customer in production who is experiencing an issue loading the add-in. The issue seems environmental, but I'm hoping someone might have some insight into the issue so I can help them resolve.
First, only one user has reported the issue and another user at the company loaded successfully. We are using 0.33.9.
When the user attempts to register the add-in, we see the ExcelDNA error log open and excel closes immediately. In order to get Excel to open, we need to delete the .xll from where it is being referenced.
I enabled trace logging on the add-in and see the following issues in the log:
ExcelDna.Integration Warning: 1 : GetExcelAddIns CreateInstance problem for type: Backstop.UI.AddInImplementation.RibbonAddin - exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Backstop.UI.AddInImplementation.AddinScope' threw an exception. ---> ExcelDna.Integration.XlCallException: Exception of type 'ExcelDna.Integration.XlCallException' was thrown.
at ExcelDna.Integration.XlCall.Excel(Int32 xlFunction, Object[] parameters)
at ExcelDna.Integration.ExcelDnaUtil.GetApplication()
at ExcelDna.Integration.ExcelDnaUtil.get_Application()
at Backstop.UI.AddInImplementation.ExcelModule.Load()
at Ninject.KernelBase.Load(IEnumerable`1 m)
at Backstop.UI.AddInImplementation.AddinScope..cctor()
--- End of inner exception stack trace ---
at Backstop.UI.AddInImplementation.RibbonAddin..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ExcelDna.Integration.AssemblyLoader.GetExcelAddIns(ExportedAssembly assembly, Type t, Boolean loadRibbons, List`1 addIns)
The above is logged as a WARN and the registration continues, but considering our ribbon implementation fails to load, I'm guessing this is relevant. Considering the exception is invocation related, my first thought is that they have issues with the PIA assemblies for their version of excel. I recommended an uninstall/reinstall and the client was resistant to do so.
The other error in the logs happens in autoopen:
ExcelDna.Integration Verbose: 1 : Enter Integration.DnaLibraryAutoOpen
ExcelDna.Integration Verbose: 3 : Register RegistrationInfo - XllPath=C:\BackstopExcel\BackstopToolkit-packed64.xll, ProcName=RegistrationInfo, FunctionType=QQ, MethodName=RegistrationInfo_104b50e6558156a8bf2a3081b6e414f2 - Result=ExcelDna.Integration.ExcelEmpty
ExcelDna.Integration Error: 1 : Integration.DnaLibraryAutoOpen Error : InvalidOperationException - Synchronization macro registration failed.
I browsed the ExcelDNA source code and can see the exception being thrown, but dont see much else that helps me resolve.
Anyone have any insights on additional steps to take?
Thank very much!