LateBindingApi.Core.Factory.Initialize throws an exception

Aug 25, 2011 at 10:09 PM

VS2010, C#,  ExcelDNA, NetOffice, in AutoOpen,  the first thing is LateBindingApi.Core.Factory.Initialize();

which works fine on some PC, but one customer report the exception

The customer has Win XP,+ Excel 2007. thanks

 at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at LateBindingApi.Core.Factory.Initialize()

Coordinator
Aug 25, 2011 at 10:12 PM
Edited Aug 25, 2011 at 10:16 PM

unbelievable!

what kind of exception is that?
its possible to give me a detailed info?
exception and all inner exceptions with message
which netoffice release do you use?

*sebastian 

Aug 25, 2011 at 10:30 PM
Edited Aug 25, 2011 at 10:40 PM

My AddIn has Ribbon, tab My Addin shows up, but Icons do not. All Ribbon buttons are greyed out.

Then I check my log, it says the exception occurrs in Initialize() which is called in AutoOpen()

This is all I get from log, there is no more info.

2011-08-18 21:28:13,944 [1] ERROR My.Helper [(null)] -    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at LateBindingApi.Core.Factory.Initialize()
   at MyAddIn.Initialize()

 

I am using 1.0

private void Initialize()
        {
            try
            {
                Helper.LogError("connecting...");
                LateBindingApi.Core.Factory.Initialize();
                XLApp = new Excel.Application(null, ExcelDnaUtil.Application);

...

}

catch(Exception ex)

{

Logger.LogException(ex);

}

Coordinator
Aug 25, 2011 at 10:41 PM

i need a detailed exception info.
i have to see what excactly happens, specialy whats ne name of the assembly that is failed to load.
i create a temporaily LateBindingApi.Core.dll with a detailed log. its possible you can execute again your project on the critical machine again
with these dll ?

 

Aug 25, 2011 at 10:53 PM

This is from one customer. I have to ask customer via a support guy.  They already left for today. Maybe you can give me the dlls and I can ask them later?

Coordinator
Aug 25, 2011 at 11:31 PM

this is possible.
please contact me via codeplex and give me your e-mail adress.