Error telerik report ReportViewer

4 posts, 0 answers
  1. Marcos
    Marcos avatar
    1 posts
    Member since:
    Mar 2012

    Posted 02 Apr 2012 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Apr 2012 Link to this post

    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.
  3. DevCraft banner
  4. Andrew
    Andrew avatar
    3 posts
    Member since:
    Apr 2013

    Posted 19 Apr 2013 Link to this post

    hello,

    When I show the report viewer comes only text and links that do not work like missing a plugin, please help!
  5. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 23 Apr 2013 Link to this post

    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.

Back to Top