I have an app that uses sfPopupLayout and also uses sfChart. They all work fine in debug mode but they throw an exception in Release mode. I get the following exception:
Exception thrown: 'System.NullReferenceException' in Syncfusion.SfPopupLayout.XForms.dll
I get a similar exception for sfChart as well
Thank you Yuvaraj. After adding the following lines in my UWP code (App.xaml.cs in OnLaunched event handler), I was able to make it work:
The new code goes between the following two lines:
rootFrame.NavigationFailed += OnNavigationFailed;
//Code goes here
Xamarin.Forms.Forms.Init(e); //comment this one out and add the new version (see below) instead
rootFrame.NavigationFailed += OnNavigationFailed;
List<Assembly> assembliesToInclude = new List<Assembly>();
//Now, add in all the assemblies your app uses
assembliesToInclude.Add(typeof(Syncfusion.XForms.UWP.PopupLayout.SfPopupLayoutRenderer).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(WordDocument).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(Presentation).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(Syncfusion.SfChart.XForms.UWP.SfChartRenderer).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(Syncfusion.ListView.XForms.SfListView).GetTypeInfo().Assembly);
//Also do this for all your other 3rd party libraries
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
///////
//commented the line below but included the one above
//Xamarin.Forms.Forms.Init(e);