Chapter08 - ColorViewList : System.Reflection.TargetInvocationException

hi,

I am following this tutorial :

https://github.com/xamarin/xamarin-forms-book-samples/tree/master/Chapter08/ColorViewList

but when running the application I got the error : System.Reflection.TargetInvocationException

I think that the problem/errror message is related to some error in Xaml files:

https://github.com/xamarin/xamarin-forms-book-samples/blob/master/Chapter08/ColorViewList/ColorViewList/ColorViewList/ColorView.xaml

https://github.com/xamarin/xamarin-forms-book-samples/blob/master/Chapter08/ColorViewList/ColorViewList/ColorViewList/ColorViewListPage.xaml

can someone help me to solve this problem?

regards,
PCaridade

Microsoft Visual Studio Professional 2015 14.0.25431.01 Update 3
Visual Studio Tools for UWA 14.0.25527.01
Xamarin 4.2.0.719 (15694b9)
Xamarin.Android 7.0.1.6 (5a02b03)
Xamarin.iOS 10.2.0.4 (b638977)

Best Answer

Answers

  • pcaridadepcaridade USMember

    hi,
    I saw the "deprecated" warning, but never crossed my mind that a "deprecated" function would cause an error.
    In Android (native/java) sometimes I use deprectated functions or the functions become deprecated with new versions, but the application still running until I have time to upgrade them to new functions.
    Thank you.

  • MoelgaardMoelgaard DKMember

    I struggled for a while with this as well, perhaps even an hour or two - Thank you for this!

Sign In or Register to comment.