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

Error telerik report ReportViewer

3 Answers 271 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Marcos
Top achievements
Rank 1
Marcos asked on 02 Apr 2012, 10:01 PM
Hello, I am creating a report with telerik report Q1 2012 I have this error when running the application:

Message: Unhandled Error in Silverlight 4 Application
Code: 4004    

Category: ManagedRuntimeError       

Message: System.InvalidCastException: Specified cast is not valid.


   at Telerik.ReportViewer.Silverlight.ZoomConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)
   at System.Windows.Data.BindingExpression.UpdateTemporaryValue()
   at System.Windows.Data.BindingExpression.GetValue(DependencyObject d, DependencyProperty dp)
   at System.Windows.DependencyObject.EvaluateExpression(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry)
   at System.Windows.DependencyObject.EvaluateBaseValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.EvaluateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.SendDataToTarget()
   at System.Windows.Data.BindingExpression.SourceAcquired()
   at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyProperty dp)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   at Telerik.ReportViewer.Silverlight.ReportViewer.Initialize()
   at Telerik.ReportViewer.Silverlight.ReportViewer.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)     

Line: 121
Char: 5
Code: 0
URI: http://localhost:1133/js/utilitarios.js

I hope someone can help me, is my first application using telerik report

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Apr 2012, 08:03 AM
Hi Marcos,

We have introduced a change to the ZoomConverter due to the Silverlight report viewer localization we implemented in the Q1 2012 release. The error you get can be caused if you've extracted the viewer template from prior Telerik Reporting version, which would not longer be valid with the upgrade to the new version. You would need to extract the new template from the Q1 2012 version and apply your customizations on it.
Another possible reason is if you have not upgraded correctly to the new version. As the Silverlight report depends on RadControls for Silverlight assemblies which contain the viewer's template, you need to update those assemblies as well to the Q1 2012 version of RadControls for Silverlight. If you have installed the Visual Studio examples shipped with the product, you can find the assemblies in C:\Program Files (x86)\Telerik\Reporting Q1 2012\Examples\CSharp\SilverlightDemo\bin.

Greetings,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Andrew
Top achievements
Rank 1
answered on 19 Apr 2013, 04:00 PM
hello,

When I show the report viewer comes only text and links that do not work like missing a plugin, please help!
0
Chavdar
Telerik team
answered on 23 Apr 2013, 01:11 PM
Hello,

If you are missing the images from the report then most probably your 'resources' endpoint of the Reporting WCF service is not configured correctly. Please, check the How to: Host WCF Service in IIS help article and make sure the configuration is the same.

If this is not the problem, we will appreciate if you open a support ticket and send us a sample application which demonstrates the problem.

Additionally you can use the Fiddler tool in order to check the server responses and see whether some of them fail and with what messages.

Greetings,
Chavdar
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
Report Designer (standalone)
Asked by
Marcos
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andrew
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or