- Home
- Forum
- Xamarin.Forms
- Build in Release + “.Net Native tool chain” raise exception
Build in Release + “.Net Native tool chain” raise exception
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:
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 "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:
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
SIGN IN To post a reply.
3 Replies
JG
Jai Ganesh S
Syncfusion Team
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
HH
Heath Hdogert
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.
AN
Ashok N
Syncfusion Team
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
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
PD Pierre-Christophe DUS
- Feb 13, 2017 06:43 PM UTC
- Jul 24, 2017 11:23 AM UTC