SfListView throwing unhandled exception on new project

Hi!

I've started a new cross platform project with xamarin.forms (using visual studio). After adding a sfnavigationdrawer and two sflistviews inside the navdrawer's contentview, the compiler is throwing an unhandled expection right after deployment. In another project, using this same approach (two sflistviews inside a sfnavdrawer) it works fine. The version of the older project with the sflistview is 15.3.0.33. The new project has version 15.4.0.20. Haven't tried on a physical device yet. Below is the end part of the log a bit before the exception is thrown. Would you need the full log? Any help is appreciated!

02-14 14:36:08.849 D/Mono    (11306): Assembly Ref addref Syncfusion.DataSource.Portable[0x9e2e1c40] -> System.Globalization[0x8f2f4e20]: 3
02-14 14:36:08.875 D/Mono    (11306): Unloading image System.Threading.dll [0x88746900].
02-14 14:36:08.875 D/Mono    (11306): Image addref System.Threading[0x87cdf240] -> System.Threading.dll[0x8f2c3e00]: 6
02-14 14:36:08.875 D/Mono    (11306): Config attempting to parse: 'System.Threading.dll.config'.
02-14 14:36:08.875 D/Mono    (11306): Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Threading/System.Threading.config'.
02-14 14:36:08.875 D/Mono    (11306): Assembly Ref addref Syncfusion.GridCommon.Portable[0x9e2e1dc0] -> System.Threading[0x8f2f2960]: 4
02-14 14:36:08.923 D/Mono    (11306): Unloading image System.Threading.dll [0x88746900].
02-14 14:36:08.923 D/Mono    (11306): Image addref System.Threading[0x87cdf420] -> System.Threading.dll[0x8f2c3e00]: 7
02-14 14:36:08.923 D/Mono    (11306): Config attempting to parse: 'System.Threading.dll.config'.
02-14 14:36:08.923 D/Mono    (11306): Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Threading/System.Threading.config'.
02-14 14:36:08.923 D/Mono    (11306): Assembly Ref addref Syncfusion.DataSource.Portable[0x9e2e1c40] -> System.Threading[0x8f2f2960]: 5
02-14 14:36:08.937 D/Mono    (11306): Unloading image System.Runtime.Extensions.dll [0x88746900].
02-14 14:36:08.937 D/Mono    (11306): Image addref System.Runtime.Extensions[0x87cdf1e0] -> System.Runtime.Extensions.dll[0x899e9f00]: 6
02-14 14:36:08.937 D/Mono    (11306): Config attempting to parse: 'System.Runtime.Extensions.dll.config'.
02-14 14:36:08.937 D/Mono    (11306): Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Extensions/System.Runtime.Extensions.config'.
02-14 14:36:08.937 D/Mono    (11306): Assembly Ref addref Syncfusion.GridCommon.Portable[0x9e2e1dc0] -> System.Runtime.Extensions[0x8f2f2f00]: 4
02-14 14:36:08.963 D/Mono    (11306): Unloading image System.Runtime.Extensions.dll [0x88748700].
02-14 14:36:08.963 D/Mono    (11306): Image addref System.Runtime.Extensions[0x87cdf4e0] -> System.Runtime.Extensions.dll[0x899e9f00]: 7
02-14 14:36:08.963 D/Mono    (11306): Config attempting to parse: 'System.Runtime.Extensions.dll.config'.
02-14 14:36:08.963 D/Mono    (11306): Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Extensions/System.Runtime.Extensions.config'.
02-14 14:36:08.963 D/Mono    (11306): Assembly Ref addref Syncfusion.SfListView.XForms[0xa73293e0] -> System.Runtime.Extensions[0x8f2f2f00]: 5
02-14 14:36:08.964 D/Mono    (11306): Unloading image System.Reflection.dll [0x88748700].
02-14 14:36:08.964 D/Mono    (11306): Image addref System.Reflection[0x87cdf4e0] -> System.Reflection.dll[0x8f2c5700]: 8
02-14 14:36:08.964 D/Mono    (11306): Config attempting to parse: 'System.Reflection.dll.config'.
02-14 14:36:08.964 D/Mono    (11306): Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
02-14 14:36:08.964 D/Mono    (11306): Assembly Ref addref Syncfusion.SfListView.XForms[0xa73293e0] -> System.Reflection[0x8f2f29c0]: 6
InspectorDebugSession(1): HandleTargetEvent: UnhandledException
Thread finished: <Thread Pool> #6
02-14 14:36:35.623 D/Mono    (11306): [0x88bfd920] worker finishing
InspectorDebugSession(1): HandleTargetEvent: ThreadStopped



3 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team February 15, 2018 01:18 PM UTC

Hi Raelson, 
 
We have checked the reported query “Unhandled exception throws when loaded 2 SfListViews inside a ContentView of the SfNavigationDrawer” and referred the attached stack trace from our side. We suspect that the reported issue is due to using older version of Xamarin.Forms in your application. We would like to inform you that SfListView requires Xamarin.Forms(>=v.2.4.0.280) to compile the application successfully. 
 
We have created a sample where we have loaded 2 SfListViews inside a ContentView of SfNavigationDrawer. We have included Grouping and Sorting for SfListView items as well in our sample. We have checked in the latest NuGet versions of both SfListView and SfNavigationDrawer(v.15.4.0.20) with Xamarin.Forms(v.2.4.0.280). We have found that the application compiles and deploys successfully in our android emulators and devices without any exceptions. 
 
For your reference, we have attached our sample and you can download it from the below location. 
 
 
If the above solution does not resolve the reported query, please share the entire stack trace of the issue which helps to understand and resolve the query better at our end. 
 
Please let us know if you need further assistance. 
 
Regards, 
G.Muthu kumaran. 



RC Raelson Craftz February 15, 2018 08:34 PM UTC

I've updated the Visual Studio, along with Xamarin, and I confirm that it has solved my issue. Thanks for the support!


MK Muthu Kumaran Gnanavinayagam Syncfusion Team February 16, 2018 03:59 AM UTC

Hi Raelson, 
 
Thanks for your valuable response. 
 
Regards, 
G.Muthu kumaran. 


Loader.
Up arrow icon