We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to overcome the crash System.Reflection.MissingMetadataException when UseDotNetNativeToolChain is enabled in UWP?

Platform: Xamarin.Forms |
Control: SfListView

In UWP platform, the “System.Reflection.MissingMetadataException ” raises while compiling the application using SfListView in Release mode. It is raised due to UseDotNetNativeToolChain (.Net Native Tool Chain) is enabled, because reflection is being used internally for sorting, grouping and filtering features in DataSource.

However, the issue can be solved in application level, by adding the below directives under Default.rd.xml file in the application of UWP project.

<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
  <Library Name="Syncfusion.DataSource.Portable">
    <Type Name="System.Linq.EnumerableExecutor{System.Int32}" Dynamic="Required Public" />
    <Type Name="System.Collections.ObjectModel.ObservableCollection{}" Dynamic="Required Public" />
    <Namespace Name="System.Linq" Dynamic="Required All" />


Click here to download the sample.


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile