UnitTests fail with Licensing Assembly not found

Hi there,

we recently updated our solution to 16.2.0.41. 
Application is running, but unittests trying to instantiate syncfusion components

(e.g. var navigationDrawer = new SfNavigationDrawer(); )

fail with "System.IO.FileNotFoundException: … Assembly "Syncfusion.Licensing, Version=16.2.0.41, Culture=neutral, PublicKeyToken=null" … not found"


Update to 16.2.0.42 didn´t help either.

- Test-Framework is MS-Test 1.3.2
- for Application Mock we use Xamarin.Forms.Mocks 3.0.0.2
- Licensing is initialised with Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense( "our_key" ); (no error message).

Any ideas how to get the tests back running?


Yours sincerly,

Oliver Kocks

3 Replies

MP Michael Prabhu M Syncfusion Team July 6, 2018 10:51 AM UTC

Hi Oliver, 
 
Sorry for the delay in getting back at this, we tried to replicate the unit test with Xamarin.Forms.Mocks and we were not able to reproduce the issue, the sample which we tried is in the below link. Can you please try to clear the cache and try this sample? 
 
 
Since we are not aware of your exact scenario, can you modify the sample and revert us with more information on the replication procedure this will help us to provide you a better solution at the earliest.  
 
Thanks, 
Michael 




OK Oliver Kocks July 6, 2018 12:18 PM UTC

Hi Michael,

thank you for your answer and the sample-project. As we are using MS-Test instead of NUnit, I modified the project to use the MS-Test Packages.
Running the tests in the Microsoft Test-Runner results in the aforementioned error message. We reproduced the problem on several PCs.
The modified project is enclosed. 

Yours sincerely,

Oliver Kocks

Attachment: TestProject_Licensing_Problem_a94a1492.zip


MP Michael Prabhu M Syncfusion Team July 11, 2018 07:16 AM UTC

Hi Oliver, 
 
Thanks for your patience, setting up the environment got delayed, we can reproduce this issue in the unit testing project and we will resolve this in our upcoming releases. This issue is because of the assembly version mismatch. However, you can resolve these issues now by following the below steps.  
  
  1. Please clear the NuGet cache.
  1. If you have valid Syncfusion license for Xamarin, please download and install the licensed version of the set up and use the NuGets from the location “C:\Users\Public\Documents\Syncfusion\Xamarin\16.2.0.41\nuget”.
(or) 
If you are using a trial version or need to use the NuGets from nuget.org, please uninstall the Syncfusion NuGets from the Unit test project alone and refer the required assemblies from this path - C:\Program Files (x86)\Syncfusion\Essential Studio\Xamarin\16.2.0.41\Xamarin\lib 
You can find the control dependencies here. https://help.syncfusion.com/xamarin/introduction/control-dependencies 
Thanks, 
Michael 
  


Loader.
Up arrow icon