I have recently implemented SfChart into my current Xamarin.Forms project by installing the NuGet package Syncfusion.Xamarin.SfChart v14.2.0.32. However, an exception occurs when I debug the application on UWP Local Machine (There is no problem in building and deploying):
An exception of type 'System.IO.FileLoadException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
There is no problem debugging on Android (I have not tested on iOS, since I don't have a Mac).
I have created a new, blank Xamarin.Forms project and installed the SFChart NuGet Package and the problem still persists. Note that the blank project consists of nothing but just the line "Welcome to Xamarin Forms!". I have not implemented any charts into the new project.
On the other hand, I tried to install another NuGet package to test. For example, I tested with Syncfusison.Xamarin.SfBarcode v14.2.0.32. The same problem is still there.
What is more interesting is that, when I "downgrade" the installed NuGet package in my current project as well as in the blank project to v14.2.0.28, everything works without a problem. The charts look great :) Same goes to Syncfusison.Xamarin.SfBarcode. It seems like there is a problem with the packages v14.2.0.32...
I have a community license and have installed Essential Studio v14.2.0.32 onto my PC. But since I have already installed the NuGet package, I suppose I don't have to manually add any reference from the Essential Studio installation folder?
I am using Visual Studio 2015 Enterprise and Xamarin.Forms v2.3.2.127.
Any ideas on how to solve the problem?
Thanks!
Tian Eu