c# - Excel DNA packing issue -


i trying pack dlls xll using exceldnapack.exe, using below command , generating pack xll file me.

"$(solutiondir)dependencies\excel-dna.0.32.0\tools\exceldnapack.exe"  "$(targetdir)exceltrader-addin.dna" /y 

but when running xll file folder dont have dependent dlls throwing exception "an exception occured while calling function onload". exception message not load file or assembly 'openapisecuritylib, version=1.0.0.0,culture=neutral,publickeytoken=null'

i have main project exceltrader.dll references openapisecuritylib.dll , openapiclientlib.dll, have added reference attribute in dna file both these dlls , dependencies , added externallibrary attribute exceltrader.dll

if put both openapisecuritylib.dll , openapiclientlib.dll in same folder xll file, xll file runs fine

please suggest doing wrong here thanks

<dnalibrary name="exceltrader add-in" runtimeversion="v4.0">   <reference path="newtonsoft.json.dll" pack="true" />   <reference path="nlog.dll" pack="true" />   <reference path="microsoft.practices.unity.configuration.dll" pack="true" />   <reference path="microsoft.practices.unity.dll" pack="true" />   <reference path="microsoft.practices.unity.registrationbyconvention.dll" pack="true" />   <reference path="microsoft.aspnet.signalr.client.dll" pack="true" />   <reference path="system.threading.tasks.dataflow.dll" pack="true" />   <reference path="system.net.http.formatting.dll" pack="true"/>   <reference path="openapiclientlib.dll"  pack="true" />   <reference path="openapisecuritylib.dll"  pack="true" />   <externallibrary path="exceltrader.dll"  pack="true" />      <!-- images can used in ribbon ui -->     <image name="login" path="images\login.gif" pack="true" />     <image name="logout" path="images\logout.png" pack="true" />     <customui>         <customui xmlns='http://schemas.microsoft.com/office/2006/01/customui' loadimage='loadimage' onload='onload'>             <ribbon>                 <tabs>                     <tab id='customtab' label='excel trader'>                         <group id='loginctrl' label='login control'>                             <button id='btnlogin' label='login'  getenabled='getenabled' image='login' size='large' onaction='onlogin' />                             <button id='btnlogout' label='logout'  image='logout' size='large' onaction='onlogout' />                         </group >                     </tab>                 </tabs>             </ribbon>         </customui>     </customui>  </dnalibrary> 

my issue got resolved checked in output 'reference path: system.threading.tasks.dataflow.dll , name: not found.' after exception rest of references getting ignored.

i checked dll reference error coming no more in use in our project after removing reference dll worked fine.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -