Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Chapter 8 ColorViewList: Unhandled Exception #12

Open
inkychris opened this issue Sep 16, 2016 · 1 comment
Open

Chapter 8 ColorViewList: Unhandled Exception #12

inkychris opened this issue Sep 16, 2016 · 1 comment

Comments

@inkychris
Copy link

I'm getting an unhandled exception when trying to deploy the ColorViewList program with the following message:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

It breaks at line 21 of the .g.cs file this.LoadFromXaml(typeof(ColorViewListPage));
I have Xamarin C8 / 4.2.0.680 installed for Visual Studio 2015 which was released only a few days ago and other projects in the chapter deploy ok.

@inkychris
Copy link
Author

I changed line 25 of the ColorView.xaml.cs file from ColorTypeConverter colorTypeConv = new ColorTypeConverter(); to Color color = (Color)colorTypeConv.ConvertFromInvariantString(colorName); as visual studio was highlighting that ConvertFrom() is now obsolete. The example then deployed successfully.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant