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

Exception from SfDataGrid thrown only in Release mode

Thread ID:

Created:

Updated:

Platform:

Replies:

125150 Jul 25,2016 11:01 PM UTC Jul 26,2016 12:31 PM UTC UWP 2
loading
Tags: SfDataGrid
Deanna Delapasse
Asked On July 25, 2016 11:01 PM UTC


I have a page with 2 datagrids which normally functions perfectly, but when I build in Release mode (with .NET tool chain enabled) the SfDataGrid is throwing an exception:

Exception thrown: 'System.Exception' in Oceaneering.AssetIntegrity.McgInterop.dll
Additional information: ResourceMap Not Found.

Attached is an image of what the grid normally looks like in debug mode and the call stack I recovered by running the release build in the debugger.  I will attempt to gather more info (ie comment out various parts of the grid to see if I can debug further), but please let me know if you have any solution or any tips on how to debug this.

There are no SF-related errors when I build the release:

1>------ Build started: Project: CommonsIntegrationTests, Configuration: Release x64 ------
2>------ Build started: Project: CommonsTests, Configuration: Release x64 ------
3>------ Build started: Project: AssetIntegrityApp, Configuration: Release x64 ------
3>  AssetIntegrityApp -> C:\dev\AssetIntegrityMobile\AssetIntegrityApp\bin\x64\Release\Oceaneering.AssetIntegrity.exe
1>  CommonsIntegrationTests -> C:\dev\AssetIntegrityMobile\CommonsIntegrationTests\bin\x64\Release\FyrSoft.Oceaneering.CommonsIntegrationTests.exe
1>  Starting .NET Native compilation
1>  Processing application code
1>C:\dev\AssetIntegrityMobile\CommonsIntegrationTests\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.
1>C:\dev\AssetIntegrityMobile\CommonsIntegrationTests\Resources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found.
1>  Computing application closure and generating interop code
1>  Generating serialization code
1>  Compiling interop code
1>  Cleaning up unreferenced code
1>  Generating native code
1>  Generating fixups for native code
2>  CommonsTests -> C:\dev\AssetIntegrityMobile\CommonsTests\bin\x64\Release\FyrSoft.Oceaneering.CommonsTests.exe
2>  Starting .NET Native compilation
2>  Processing application code
2>C:\dev\AssetIntegrityMobile\CommonsTests\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.
2>C:\dev\AssetIntegrityMobile\CommonsTests\Resources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found.
2>  Computing application closure and generating interop code
2>  Generating serialization code
2>  Compiling interop code
2>  Cleaning up unreferenced code
2>  Generating native code
2>  Generating fixups for native code
========== Build: 3 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========

Attachment: releaseModeGridCrash_97f38fc8.zip

Deanna Delapasse
Replied On July 26, 2016 12:27 PM UTC

I was able to resolve this thanks to an issue in the WinRT forum (https://www.syncfusion.com/forums/118701/universal-apps).   I added the file from the sample, but had to modify the name to "Syncfusion.SfGrid.UWP.Resources.resw" (was *.Universal*).

I'm not sure if that file is up-to-date though...is there an official place where we should download an updated resource file?

Sowndaiyan Paulpandi [Syncfusion]
Replied On July 26, 2016 12:31 PM UTC

Hi Deanna,

The Resource Map not found exception is due to retrieving of localization resources file and it is not possible to avoid this exception in WinRT/UWP platforms. But you can overcome this exception by including that resource file in your application/sample.        
In the above sample, we have added the Resource file to avoid the exception.     
You can get the default resource file from the below UG link,     
Regards,  

Sowndaiyan
   


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

;