Problems using library : Could not load file or licence key not applied

Hello,

I have 4 applications using XlsIO library : 
- 1 web api NetFramework 471
- 2 Asp.Net web site NetFramework 471
- 1 Azure Function NetFramework 471

These apps are running approximatively the same code to generate or read xlsx documents. All is running well with 16.4.0.54 version of syncfusion.

Recently I had to create a common library to centralize my code using XlsIO Library.
To do this, I have created a NetStandard 2.0 Library, added SyncFusion packages
- Syncfusion.XlsIO.Net.Core 18.3.0.44
- Syncfusion.Licensing 18.3.0.44
And added my code to my library.
As you can see, I had to upgrade the version of syncfusion because my unit tests were crashing when tested in netFramework 471 (netcoreapp 2.1 and 3 were still ok). I have generated a new licence key for the new version and upgraded my code to take care of it.

I have created a private nuget package of my newly created framework lib.

Then, in my applications I removed direct package reference to syncfusion packages and added my framework lib nuget reference.

Now I have two problems : 

1) in my web api, the licence key is not working and I have the evaluation warning in my generated document. The code haven't changed between old process and new process : the licence key is still used as it was before. So I don't understand what's wrong...
2) In my Azure function app, I have a crash that says it could not load 18.3.0.44 Syncfusion.Licensing assembly. I double checked and the assembly is still deployed.

I've checked all references and the only references to SyncFusion are in my common library (so it's not a problem due to different versions or whatever)

Can you please help me find a solution to my problems ?
Thanks

1 Reply 1 reply marked as answer

SK Shamini Kiruba Sobers Syncfusion Team October 29, 2020 12:23 PM UTC

Hi Steeve, 

Greetings from Syncfusion. 

The reported issue results due to version mis-match. We suggest you to uninstall all the existing Syncfusion packages from your application and remove the assemblies from GAC using Syncfusion Assembly Manager which is available in the Syncfusion Dashboard and also, delete bin and obj folders of the project. Refer to the following link for removing assemblies from GAC. 
  

Now, reinstall XlsIO package alone from nuget.org. This will in-turn install the required dependencies (Compression and Licensing) of the same version into your application. 

Please look into the following link to know about the platform related packages need to be used in your application. 

Kindly try this and let us know if the provided information helps. 

Regards, 
Shamini 


Marked as answer
Loader.
Up arrow icon