ReportBook is not a valid value for property ReportSource

3 posts, 0 answers
  1. Casey
    Casey avatar
    2 posts
    Member since:
    Oct 2014

    Posted 28 Oct 2014 Link to this post

    I'm getting an ArguementException when setting the viewer's ReportSource to the instanceReportSource.
    It was working fine in 2013 Q1, but is broken in 2014 Q3.
    Thanks
  2. Casey
    Casey avatar
    2 posts
    Member since:
    Oct 2014

    Posted 29 Oct 2014 in reply to Casey Link to this post

    Here is the stack trace if it helps:
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.ReportViewer.Wpf.ReportViewer.set_ReportSource(ReportSource value)
       at Novarad.RIS.Billing.Views.Common.ReportView.OnDataContextChanged(Object sender, DependencyPropertyChangedEventArgs e) in c:\Source\Dev\Products\RIS\Libraries\BillingViews\Common\ReportView.xaml.cs:line 35
       at System.Windows.FrameworkElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
       at System.Windows.FrameworkElement.OnDataContextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Novarad.RIS.Applications.BillingClient.Views.NavigatorView.OpenNewEventView(ViewModelViewMessage vmvMessage) in c:\Source\Dev\Products\RIS\Applications\BillingClient\Views\NavigatorView.xaml.cs:line 466
       at Microsoft.Practices.Composite.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)
       at Microsoft.Practices.Composite.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)
       at Microsoft.Practices.Composite.Events.EventBase.InternalPublish(Object[] arguments)
       at Microsoft.Practices.Composite.Presentation.Events.CompositePresentationEvent`1.Publish(TPayload payload)
       at Novarad.RIS.ClientCore.Helpers.LaunchViewAssistant.ViewModelObjectChanged(Object sender, DependencyPropertyChangedEventArgs args) in c:\Source\Dev\Products\RIS\Libraries\RIS.ClientCore\Helpers\LaunchViewAssistant.cs:line 66
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
       at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
       at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
       at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
       at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView)
       at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
       at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
       at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
       at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
       at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
       at Novarad.RIS.ClientCore.ViewModelBase.OnPropertyChanged(String propertyName) in c:\Source\Dev\Products\RIS\Libraries\RIS.ClientCore\ViewModelBase.cs:line 30
       at Novarad.RIS.ClientCore.ViewModelBaseEx.OnPropertyChanged[T,TProperty](T viewModelBase, Expression`1 expression) in c:\Source\Dev\Products\RIS\Libraries\RIS.ClientCore\ViewModelBase.cs:line 111
       at Novarad.RIS.Billing.ViewModels.Reports.CashReceiptsReportFilterViewModel.set_CashReceiptsReportViewModel(CashReceiptsReportViewModel value) in c:\Source\Dev\Products\RIS\Libraries\BillingViewModels\Reports\CashRecieptReport\CashReceiptsReportFilterViewModel.cs:line 43
       at Novarad.RIS.Billing.ViewModels.Reports.CashReceiptsReportFilterViewModel.CreateReport(Object arg) in c:\Source\Dev\Products\RIS\Libraries\BillingViewModels\Reports\CashRecieptReport\CashReceiptsReportFilterViewModel.cs:line 23
       at Microsoft.Practices.Composite.Presentation.Commands.DelegateCommand`1.Execute(T parameter)
       at Microsoft.Practices.Composite.Presentation.Commands.DelegateCommand`1.System.Windows.Input.ICommand.Execute(Object parameter)
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

  3. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 31 Oct 2014 Link to this post

    Hello Casey,

    We cannot determine what causes the problem with the given information. Please double-check if the reports' project is upgraded to the same Telerik Reporting version as the start project.
    Also send us details how the report is passed to the viewer in code.


    On a side note, when you upgrade your project you will have to upgrade both Telerik UI for WPF and Telerik Reporting. Keep in mind that as of Q1 2014 the WPF/Silverlight ReportViewer uses implicit styles instead of the StyleManager to apply themes. More details how to update your project and how to troubleshoot possible issues that may appear are described in the following forum thread: Upgrade Path Q3 2014.

    The only files part of Telerik Reporting are the Telerik.ReportViewer.WPF.dll and Telerik.ReportViewer.Wpf.xaml. The rest files should be updated from the UI for WPF product folder.

    Details how to add a WPF ReportViewer are available in the How to: Add report viewer to a WPF application help article. Also the following blog post elaborates on all strategies for using the WPF ReportViewer with the existing UI for WPF assemblies: Setting a theme of the WPF/Silverlight Report Viewer (Q1 2014 and later).


    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top