Hello,
I've developed an Excel Library using Excel DNA. It's working fine if I just directly add the AddIn to Excel from Debug folder.
For redistribution in a single .xll file, I've used Excel DNA Pack.exe, added all the References in a .dna file.
<DnaLibrary Name="Riskwatch addin Add-In" RuntimeVersion="v4.0">
<ExternalLibrary Path="Riskwatch addin.dll" ExplicitExports="false" LoadFromBytes="true" Pack="true" />
<Reference Path="alglibnet2.dll" Pack="true" />
<Reference Path="ExcelDna.IntelliSense.dll" Pack="true" />
<Reference Path="MathNet.Numerics.dll" Pack="true" />
</DnaLibrary>

After running the command to pack everything (>ExcelDnaPack.exe "Riskwatch addin-AddIn.dna" /O Lib.xll /Y), it successfully creates the single .xll file.
Adding AddIn in Excel, gives me error:
Initialization [Error] External library could not be registered - Path: packed:RISKWATCH ADDIN : ArgumentOutOfRangeException - Unknown resource type. Only types 0 (Assembly), 1 (Dna file), 2 (Image) or 3 (Source) are valid.
Parameter name: type
Initialization [Error] External library could not be registered - Path: packed:RISKWATCH ADDIN : ArgumentOutOfRangeException - Unknown resource type. Only types 0 (Assembly), 1 (Dna file), 2 (Image) or 3 (Source) are valid.
Parameter name: type
Please give me any suggestion, clue. Am I missing something???