Registration [Error] Repeated function name: 'Run'

Mar 3, 2016 at 8:58 AM
Edited Mar 3, 2016 at 9:02 AM
Hi all,

When I start my add-in, I get the diagniostics display with a whole bunch of errors (below). After that, the add-in does seem to work ok. The function names don't ring a bell with me, think it's from Excel-dna internals. I think it started after I upgraded my PC to Windows 10 and re-installed VS etc. Have tried different machine, same behaviour.

Does anyone have an idea what might cause this (and how to fix it)?

I have ExcelDna.AddIn 0.33.09

Thanks in advance, GJ

These are all the errors:
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: '_Run2' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'SendKeys' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Registration [Error] Repeated function name: 'Run' - previous registration will be overwritten.
Coordinator
Mar 4, 2016 at 9:28 AM
Hi Gert-Jan,

The latest Excel-DNA versions displays errors like these for problems that were previously silently ignored.

Most likely you have some assemblies that are erroneously listed as <ExternalLibrary ..> in your .dna file (and hence being processed by Excel-DNA looking for functions to export).

For packing purposes, you can use a <Reference ... Pack="true" /> tag instead.

There is also an option to ask Excel-DNA to register only functions that are explicitly marked as [ExcelFunction] - for this you say something like
<ExternalLibrary Path="ExcelAddin.dll" LoadFromBytes="true" Pack="true" ExplicitExports="true" />

-Govert


Mar 4, 2016 at 12:39 PM
Solved. Thank you so much!

Have a great weekend, GJ