Xamarin.Forms.Xaml.XamlParseException: Position 12:8. Type telerikGauges:GaugeLinearAxis not found in xmlns clr-namespace:Telerik.XamarinForms.DataVisualization.Gauges;assembly=Telerik.XamarinForms.DataVisualization
We are able to reproduce this on 2 machines now with 2 completely different Xamarin projects. The project runs normally and displays the gauge on Android, that error is only thrown with iOS.
5 Answers, 1 is accepted
0
Paul
Top achievements
Rank 1
answered on 23 Feb 2017, 06:43 PM
This is even reproducible if you use the Telerik Xamarin Forms project wizard, you will only be able to run on Android
0
Paul
Top achievements
Rank 1
answered on 23 Feb 2017, 07:41 PM
We also just tested this on Xamarin Studio on a Mac and still produced the exact same error
pls help
0
Hi,
I was able to reproduce the described runtime exception.
One way to resolve this is to give an x:Name to the gauge:
Another way to go here is to access anything in the DataVisualization assembly so that it gets loaded. I suspect that the reason for this exception is the .Net mechanism of lazy loading of dlls and the xaml parser cannot find the proper type unless an x:Name is given, or a prior initialization was done.
Let us know how it goes.
Regards,
Petar Marchev
Telerik by Progress
I was able to reproduce the described runtime exception.
One way to resolve this is to give an x:Name to the gauge:
<
telerikGauges:RadRadialGauge
x:Name
=
"gauge1"
>
Another way to go here is to access anything in the DataVisualization assembly so that it gets loaded. I suspect that the reason for this exception is the .Net mechanism of lazy loading of dlls and the xaml parser cannot find the proper type unless an x:Name is given, or a prior initialization was done.
Let us know how it goes.
Regards,
Petar Marchev
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Hello,
I have just learned that there is one more option - you can turn on XAML Compilation. You can either set the XamlCompilation attribute for the whole portable assembly:
Or you can only mark only the page with the gauge:
We are probably going to include this by default in our Wizard, so that this issue does not occur.
Regards,
Petar Marchev
Telerik by Progress
I have just learned that there is one more option - you can turn on XAML Compilation. You can either set the XamlCompilation attribute for the whole portable assembly:
[assembly: Xamarin.Forms.Xaml.XamlCompilation(Xamarin.Forms.Xaml.XamlCompilationOptions.Compile)]
Or you can only mark only the page with the gauge:
[Xamarin.Forms.Xaml.XamlCompilation(Xamarin.Forms.Xaml.XamlCompilationOptions.Compile)]
We are probably going to include this by default in our Wizard, so that this issue does not occur.
Regards,
Petar Marchev
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 27 Feb 2017, 01:59 PM
That makes sense since I noticed the gauge will load on the 2nd or 3rd pages loaded but not the initial page.
Thanks for the fix