We have the add-in to excel written in C#. We are using Excel-DNA also. Lately we got this window on startup of Add-in

Any idea what is this window and how we can turn of it?
By default, Excel-DNA will try to register all public static methods in public types in the assemblies listed as <ExternalLibrary ...> in the .dna file.
For your add-in, there seems to be more than one such function called 'Modulus' that Excel-DNA is trying to register. The error arises from this duplication (one registration is being overwritten by another).
You have a few ways around this:
ExcelFunction attributes.<ExternalLibrary> in the .dna file - extra assemblies that you want to pack into a single-file .xll should be added as <Reference> tags - these are not examined for functions and registered with Excel.Answer from @Govert is helpful, but if you don't want to correct error and warnings in this window and not to see it you need to paste this part of code in your app.config file:
<!--Switch off the diagnostic -->
<system.diagnostics>
<sources>
<source name="ExcelDna.Integration" switchValue="Off"></source>
</sources>
</system.diagnostics>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With