This project has moved and is read-only. For the latest updates, please go here.

FileNotFoundException on LateBindingApi.Core.Factory.Initialize() line

Apr 16, 2012 at 10:42 PM

After adding a reference to an unrelated .NET library to my code, the call to LateBindingApi.Core.Factory.Initialize() results in FileNotFoundException.

The library in question is Time Period Library for .NET but it is not used in any way in the class using the NetOffcie assemblies to export some data from a datagrid to an Excel spreadsheet. There is no "using Itenso.TimePeriod;" statement at the top of the file and the code in this class is not using that assembly in any way...

Why would LateBindingApi need to look for this assembly and throw this exception which happens even if I copy the assembly dll to the folder LateBindingApi is looking for it in? Any ideas how to solve the problem?

Exception Details:

Message: Could not load file or assembly 'Itenso.TimePeriod, Version=, Culture=neutral, PublicKeyToken=d7f23b760ed5c748' or one of its dependencies. The system cannot find the file specified.

Source: LateBindingApi.Core

Apr 16, 2012 at 11:01 PM


In the Intialize() method, NetOffice detect all depencies in currently loaded ApplicationDomain.
All currently loaded NetOffice assemblies was stored in a dictionary now. The analyzing of the dependent 'Itenso.TimePeriod' assembly failed here.
nice to know whats the problem, but anyway this is a NetOffice issue. Gimme one day to fix them and NetOffice ignore -failed- assemblies in current application domain.



Apr 16, 2012 at 11:12 PM

Thanks for a quick reply Sebastian...