RadialGauge crashes

4 posts, 0 answers
  1. aiu
    aiu avatar
    5 posts
    Member since:
    Mar 2006

    Posted 21 Mar 2011 Link to this post

    I have setup RadialGauge in xaml like this:
                    <telerik:RadGauge x:Name="wciGauge" Width="300" Height="300" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2"><br>                    <telerik:RadialGauge><br>                        <telerik:RadialScale Min="0" Max="100"><br>                            <telerik:RangeList><br>                                <telerik:RadialRange Name="Green" Min="0" Max="30" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Green" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Yellow" Min="30" Max="50" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Yellow" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Orange" Min="50" Max="70" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Orange" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Red" Min="70" Max="100" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Red" BorderBrush="LightGray"/><br>                            </telerik:RangeList><br>                            <telerik:IndicatorList><br>                                <telerik:Needle Name="needleIndicator" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:StateIndicator Name="stateIndicator" Left="0.48" Top="0.60" RelativeWidth="0.1" RelativeHeight="0.1" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:NumericIndicator Name="numericIndicator" Value="{Binding CurrentWci.Score}" Format="{}{0:F0}" FontSize="16" FontFamily="Arial" BorderBrush="Transparent"<br>                                                          Background="Transparent" Foreground="AntiqueWhite" Left="0.3" Top="0.80" RelativeWidth="0.55" RelativeHeight="0.16"><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                </telerik:NumericIndicator><br>                            </telerik:IndicatorList><br>                        </telerik:RadialScale><br>                    </telerik:RadialGauge><br>                </telerik:RadGauge><br>

    It works well running the application inside VS 2010.  It crashes when I run a ClickOnce version of the application on the same computer.  Exception given Is:
    Cannot create instance of 'Needle' defined in assembly 'Telerik.Windows.Controls.Gauge, Version=2010.3.1314.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation.  Error at object 'Telerik.Windows.Controls.Gauges.IndicatorList' in markup file.

    Nothing in code behind except these using statements:
    using Telerik.Windows.Controls;
    using Telerik.Windows.Controls.Gauges;

    Regards
    Arnvid
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Mar 2011 Link to this post

    Hello aiu,

    Usually the RadGauge project requires references to the three following DLLs:
    - Telerik.Windows.Controls.dll
    - Telerik.Windows.Controls.Gauge.dll
    - Telerik.Windows.Data.dll

    Please check that all of these DLLs are referenced in your project.
    Also please check that all of these DLLs are distributed with ClickOnce.

    Kind regards,
    Andrey Murzov
    the Telerik team

  3. UI for WPF is Visual Studio 2017 Ready
  4. aiu
    aiu avatar
    5 posts
    Member since:
    Mar 2006

    Posted 24 Mar 2011 Link to this post

    Your hint did not help.  Everything was initially set up as you told me it should be.  I have also checked that referenced assemblies actually are included in the ClickOnce installation on my PC.

    I have also replaced Needle with RadialBar, but this made no difference.

    Any other hints?

  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 29 Mar 2011 Link to this post

    Hello aiu,

    I have attached a sample solution with a gauge that has a code like you sent. I have tried to create a ClickOnce application using the "Publish" wizard. I have created a "only available online" application at my local IIS (http://localhost/). It works as expected.
    Could you, please, try to publish it on your PC?
    I think it could provide an additional information to solving the problem.

    All the best,
    Andrey Murzov
    the Telerik team
Back to Top