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.
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:

Created:

Updated:

Platform:

Replies:

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

Hello,

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:
Exc1
Exc2
Exc3

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 "14.3.0.49" to "14.4.0.20", 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"
Margin="0,0,0,16"
Padding="0,8,0,0" />
</Grid>
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"
Margin="0,0,0,16"
Padding="0,8,0,0" 
ItemsSource="{Binding CarForms}">
<grid:SfDataGrid.Columns>
<grid:GridTextColumn x:Uid="HomeSfColumnSubmitter"
MappingName="submitterName" 
TextWrapping="Wrap" />
</grid:SfDataGrid.Columns>
</grid:SfDataGrid>
</Grid>

Would you have any explanation?

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

Regards,

Pierre-Christophe


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 
 
Regards, 
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 
    assembliesToInclude.Add(typeof(SfDataGridRenderer).GetTypeInfo().Assembly); 
 
    // replaces Xamarin.Forms.Forms.Init(e);         
    Xamarin.Forms.Forms.Init(e, assembliesToInclude);    
    …………………… 
} 
 
Please refer the below UG link for more details: 
 
Regards, 
Ashok 


CONFIRMATION

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.

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

;