This is a migrated thread and some comments may be shown as answers.

RadialGauge crashes

3 Answers 55 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
aiu
Top achievements
Rank 1
aiu asked on 21 Mar 2011, 12:56 PM
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

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 23 Mar 2011, 12:43 PM
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

0
aiu
Top achievements
Rank 1
answered on 24 Mar 2011, 02:59 PM
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?

0
Andrey
Telerik team
answered on 29 Mar 2011, 08:43 AM
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
Tags
Gauges
Asked by
aiu
Top achievements
Rank 1
Answers by
Andrey
Telerik team
aiu
Top achievements
Rank 1
Share this question
or