Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

XamlC compiles, but throws InvalidCastException: Specified cast is not valid in InitializeComponent

$
0
0

Hi,

Updated my XF project to 2.0.0.6487 and verified that it's still working. Then I enabled XamlC on the assembly level. Android project builds without issues but dies on my Android 4.3 device in the InitializeComponent() call of the first page.

System.InvalidCastException: Specified cast is not valid.

Stacktrace does not reveal any additional information. Any tips where I should start debugging?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>