Error when loading CategoryTitlePage

Hi,

I've installed the UI template as it is, without any modification but when I try to load it I get the following error:

System.Runtime.Serialization.InvalidDataContractException: 'Type 'FleetMgr.ViewModels.Catalog.CategoryPageViewModel' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute.  Consider marking the base type 'FleetMgr.ViewModels.BaseViewModel' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.'

I've tried to replace System.Runtime.Serialization.Json with Newtonsoft.Json, without success. Why I might be getting this error?

I'm on Xamarin.Forms 5 and using VS2019

Thanks

4 Replies 1 reply marked as answer

PA Pablo February 17, 2021 01:21 PM UTC

The same with FileExploreListPage


YP Yuvaraj Palanisamy Syncfusion Team February 18, 2021 01:35 PM UTC

Hi Pablo, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and we have prepared the sample with Syncfusion Essential UIKit CategoryTile Page in Catalog category and FileExploreList Page in Navigation category. And it was working fine at our end. Please find the sample from the below link. 
 
  
Could you please check the above sample at your end, please let us know if you have any concern. 
 
Regards, 
Yuvaraj. 


Marked as answer

PA Pablo February 18, 2021 06:55 PM UTC

Hi,

Thanks for this. It put me on the good track to resolve the actual issue. It happens that I had a duplicated NotifyPropertyChange function as a placeholder that would return an exception at all times. I got rid of that and it finally worked.

Thanks!


YP Yuvaraj Palanisamy Syncfusion Team February 19, 2021 05:44 AM UTC

 
Thank you for your update. We are glad to know that the solution at your end.  
 
Regards, 
Yuvaraj 


Loader.
Up arrow icon