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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Build in Release + “.Net Native tool chain” raise exception

Thread ID:





131693 Feb 13,2017 06:43 PM UTC Jul 24,2017 11:23 AM UTC Xamarin.Forms 3
Tags: SfDataGrid
Pierre-Christophe DUS
Asked On February 13, 2017 06:43 PM UTC


I've developed an UWP app where the SfDaraGrid is used to display a forms list.

As I encounter a problem on the Store app that doesn't occur under Visual Studio in "Debug" mode, I must build the app in similar conditions: "Release" mode + “.Net Native tool chain”.

But as soon as I arrive on the home page, which contains the SfDataGrid, I get several exceptions:

After the last exception has been displayed, I can't do anything, even if I click on "Continue".

I've updated the Syncfusion version from "" to "", as you suggested on other threads, but it didn't change anything. My version of Visual Studio 2015 is "14.0.2543.01 Update 3".

For the tests I have replaced the page by a default page containing a minimal part of code.

It works until a ItemsSource is defined:
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<grid:SfDataGrid x:Name="sfDataGrid" Grid.Row="1"
Padding="0,8,0,0" />
If I add the ItemsSource and a Column, I encounter the exceptions that I have mentioned previously:
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<grid:SfDataGrid x:Name="sfDataGrid" Grid.Row="1"
ItemsSource="{Binding CarForms}">
<grid:GridTextColumn x:Uid="HomeSfColumnSubmitter"
TextWrapping="Wrap" />

Would you have any explanation?

The same code works well in "Debug" mode, of ine the Store until the error occurs...



Jai Ganesh S [Syncfusion]
Replied On February 14, 2017 12:49 PM UTC

Hi Pierre, 
A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates 
Jai Ganesh S 

Heath Hdogert
Replied On July 21, 2017 04:15 PM UTC

Has this been resolved? I am having the same issue with my current xamarin.forms app and syncfusion.xform being in debug mode.

Ashok N [Syncfusion]
Replied On July 24, 2017 11:23 AM UTC

Hi William, 
In Xamarin.Forms the custom controls will not render when deployed the application in Release Mode. You can be resolved by initializing the SfDataGrid assemblies in App.xaml.cs in UWP project as like in below code snippet. 
protected override void OnLaunched(LaunchActivatedEventArgs e) 
    rootFrame.NavigationFailed += OnNavigationFailed; 
    // you'll need to add `using System.Reflection;` 
    List<Assembly> assembliesToInclude = new List<Assembly>(); 
    //Now, add all the assemblies your app uses 
    // replaces Xamarin.Forms.Forms.Init(e);         
    Xamarin.Forms.Forms.Init(e, assembliesToInclude);    
Please refer the below UG link for more details: 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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