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.

Error MCG0024 in Xamarin Forms UWP Project on release mode build

Thread ID:

Created:

Updated:

Platform:

Replies:

133008 Oct 3,2017 09:28 PM Nov 20,2017 03:55 AM Xamarin.Forms 11
loading
Tags: SfListView
Russ Fustino
Asked On October 3, 2017 09:28 PM

See: Error MCG0024 in .NET Stardard Forms UWP Project.

https://bugzilla.xamarin.com/show_bug.cgi?id=58485 , the bugzilla report states the solution is talking to the Syncfusion support team to fix or going back to xf 2.3.4.247

However, I can't go back to xf 2.3.4.247  because only the current XF release solves this issue described here:

NullReferenceException: Platform.UWP.ImageRenderer.UpdateAspect()

https://forums.xamarin.com/discussion/comment/299737, fix requires xf 2.4.0.282

Also with 2.3.4.247  my images do not show in the Listview GridLayout, in release mode.

I have the latest Syncfusion ListView installed,  15.3.0.33. Please help! I can not deploy a submission to store with this bug. It is a show stopper for me.


Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On October 5, 2017 08:29 AM

Hi Russ,   
   
We have checked the reported query “GridLayout images are not rendered in UWP platform in release mode” from our side. We would like to let you know that the reported issue occurs due to Xamarin framework problem. Please refer the below Bugzilla link to know more details.   
   
   
You can resolve the issue by using one of the overloads for ImageSource.FromResource that takes in the SourceAssembly or SourceType like below code example.   
   
ImageSource.FromResource("[PCLName].[FolderName].[EmbeddedResourceImage]",typeof(App));   
  
For your assistance, we have attached the working sample link below.   
   
   
Please let us know if you require further assistance.   
   
Regards,   
G.Muthu Kumaran.  


Russ Fustino
Replied On October 6, 2017 01:53 AM

Thanks, that helped on getting the images in release mode, but did not solve my dilemma. I reverted back to 2.3.4.270 and even 2.3.4.247. I am getting a release runtime error... in SharedStubs.g.cs when I go back and forth between my detail page and my ListView page, especially if I navigate back from the detail page to the ListViewPage and the images have not downloaded from the web on the detail page. I also have some embedded images on that page too, and I applied the ,Typeof(App) suggestion too. In debug, the error bubbles up to App.g.i.cs .

In debug mode, I get this error:

Exception = {System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.Forms.Platform.UWP.ImageRenderer.UpdateAspect()
   at Xamarin.Forms.Platform.UWP.ImageRenderer.<OnElementChanged>d__3.MoveNext()
--- End of stack trace fr...

In release mode, I get this error:

Unhandled exception at 0x06E17A98 (Windows.UI.Xaml.dll) in JethroTullX.UWP.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x12FC17F0, 0x00000006). occurred

I believe I need to get a version of Syncfusion that works with 2.4.0.282. Then, everything will work.

FormsDatePicker class for WinRT/UWP is removed in Xamarin forms at some point. 2.3.4.something. Here is the bug that needs fixing by Syncfusion according to Xamarin... https://bugzilla.xamarin.com/show_bug.cgi?id=58485

I can not deploy a submission to store with this bug. It is a show stopper for me.. ETA on this fix ?



Dinesh Babu Yadav [Syncfusion]
Replied On October 9, 2017 05:13 AM

Hi Russ, 
 
Sorry for the inconvenience. 
 
Query 
Response 
Null reference exception throws while rendering the image in UWP platform 
As reported to bugzilla team, the isssue will occur in the Xamarin Forms version 2.3.4.270 too. However, it has been resolved in latest stable version 2.4.0.282 by Xamarin team. So, you can resolve this error by upgrading the Xamarin Forms version to latest stable version 2.4.0.282 in your application.  
 
Also, you can overcome the issue with “GridLayout images are not rendered in UWP platform in release mode” by using the provided code example in the previous update. 
 
We hope that SfListView will work in latest version 2.4.0.282 without any issues. If you are facing any problem with SfListView in latest Xamarin version, please let us know the details. 
 
Issue with DatePicker in SfDataGrid 
A support incident has been created under your account to track the status of the reported query. Please log on to our support website to check for further updates.    
 
 
 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 
 


walabi
Replied On October 19, 2017 04:29 PM

When is going to be fixed the "Issue with DatePicker in SfDataGrid "?? I can't deploy because this error.


Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On October 20, 2017 03:07 AM

Hi walabi,

We have provide the support for Xamarin.Forms stable version only. Xamarin.Forms v2.4 stable release will be released after we freeze our 2017 Vol 3 SP 2 release, so we didn’t support Xamarin.Forms v2.4 in this release. Also our SfDataGrid control will support many columns type so we have used customized view in our source.   

For SfDatePickerRenderer we have derived from DatePickerRenderer class in Xamarin.Forms.UWP platform and DatePickerRenderer was derived fromFormsDatePicker but now it was derived from Windows.UI.Xaml.Controls.DatePicker in Xamarin.Forms, so the reported issue was reproduced. This issue has been resolved while we upgrade our product Xamarin.Froms version to current version (v2.4.0.280).   

Currently we are testing our Syncfusion controls with Xamarin.Forms v2.4.0.280 stable version and we are focusing to release our Syncfusion controls with support Xamarin.Forms v2.4.0.280 in our upcoming 2017 Vol 4 main release, which will be schedule for rolls out first week of November, 2017. We appreciate your patience until then.   

Regards, 
G.Muthu Kumaran. 


walabi
Replied On October 20, 2017 06:49 PM

Thank you very much for the reply, i'll wait for the update.


Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On October 23, 2017 12:02 AM

Hi walabi, 
 
Thanks for the update. 
 
Regards, 
G.Muthu Kumaran. 


Nicolai
Replied On November 10, 2017 05:36 AM

Hi walabi, 
 
Thanks for the update. 
 
Regards, 
G.Muthu Kumaran. 


Hello,

any news on when service release 4 is coming out for xamarin forms? I also have release build problem because of FormsDatePicker


Regards


Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On November 13, 2017 03:52 PM

Hi Schönberg, 
 
We are glad to announce that our Essential Studio Volume 4, 2017 (Version 15.4.0.17) is rolled out and is available for download under the following link. 
 
                              
We have updated our source to stable version of Xamarin.Forms (v2.4.0.280) along with android support libraries (v25.4.0.2) and included in this release. We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
G. Muthu Kumaran. 


Russ Fustino
Replied On November 17, 2017 11:35 AM

We can close this thread! Thanks for the online session with support. Much appreciated. We determined that we needed to apply an update to another third party control (Mr. Gestures version 1.5) which apparently used the older version of Xamarin Forms and the cause of the problem with the dateTimepicker error message, with it's prior version  (1.4.2.2). THANKS! I owe you a blog article on how great the support has been and what a great set of products Syncfusion has, in particular the Listview and using the Grid Layout! 

Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On November 20, 2017 03:55 AM

Hi Russ, 
 
Thanks for the valuable feedback. If you have any other concerns, please open a new support incident in your Direct-Trac account. As always, we will be happy to assist you. 
 
Regards, 
G.Muthu Kumaran. 


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.

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.

;