iOS error: Type telerikGauges:GaugeLinearAxis not found in xmlns...

6 posts, 0 answers
  1. JK
    JK avatar
    16 posts
    Member since:
    Jan 2014

    Posted 23 Feb Link to this post

    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.

  2. JK
    JK avatar
    16 posts
    Member since:
    Jan 2014

    Posted 23 Feb in reply to JK Link to this post

    This is even reproducible if you use the Telerik Xamarin Forms project wizard, you will only be able to run on Android
  3. JK
    JK avatar
    16 posts
    Member since:
    Jan 2014

    Posted 23 Feb in reply to JK Link to this post

    We also just tested this on Xamarin Studio on a Mac and still produced the exact same error

     

    pls help

  4. Petar Marchev
    Admin
    Petar Marchev avatar
    996 posts

    Posted 27 Feb Link to this post

    Hi,

    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
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    996 posts

    Posted 27 Feb Link to this post

    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:
    [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
  6. JK
    JK avatar
    16 posts
    Member since:
    Jan 2014

    Posted 27 Feb Link to this post

    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

Back to Top