After the most recent update to Reporting, a NullReferenceException is thrown when a ReportViewer is loaded without setting the ReportSource. When I load the the view that contains the viewer, I'm seeing this exception which I can't catch and suppress. My particular use case is in a Application that dynamically creates reports based on user input and then sets the source through data binding. This is a show stopper for a release I have to meet next week, so any quick help that can be provided would be much appreciated.My particular use case is in an MVVM Application where I dynamically create reports based on user input and then set the source through data binding.
Here is the stack trace:
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.CreateReportSourceSnapshot() + 0x26 bytes Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportInternal(bool reloadParameters, Telerik.ReportViewer.Common.LogHistoryRecord logHistory, bool resetCachedResults) + 0xb5 bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.RefreshReport() + 0x4c bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(object sender, System.Windows.RoutedEventArgs e) + 0x26 bytes
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x78 bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs e) + 0x17 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject root, System.Windows.RoutedEvent routedEvent) + 0x149 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object root) + 0xa9 bytes
PresentationCore.dll!MS.Internal.LoadedOrUnloadedOperation.DoWork() + 0x16 bytes
Here is the stack trace:
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.CreateReportSourceSnapshot() + 0x26 bytes Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportInternal(bool reloadParameters, Telerik.ReportViewer.Common.LogHistoryRecord logHistory, bool resetCachedResults) + 0xb5 bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.RefreshReport() + 0x4c bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(object sender, System.Windows.RoutedEventArgs e) + 0x26 bytes
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x78 bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs e) + 0x17 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject root, System.Windows.RoutedEvent routedEvent) + 0x149 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object root) + 0xa9 bytes
PresentationCore.dll!MS.Internal.LoadedOrUnloadedOperation.DoWork() + 0x16 bytes