I have an issue using the Telerik reporting Q3 2012 (SP1) Specifically the Telerik.ReportViewer.Wpf.dll (version 6.2.13.123)
I create a WPF application
On the MainWindow.xaml, I add RadDocking as follows:
<Grid>
<telerik:RadDocking>
<telerik:RadSplitContaier>
<telerik:RadPaneGroup>
<telerik:RadPane>
<tr:ReportViewer />
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContaier>
</telerik:RadDocking>
</Grid>
When I run this, the main window opens fine. Now drag the window and dock it somewhere in the main window.
The result is an exception (NullReferenceException) the stack trace mentions the ReportViewerModel.SetReportSourceEffective (ReportViewerModel.cs line 983)
Note: This seems to be an issue with the SP 1 dll because this example code runs fine when using the Telerik reporting Q3 2012 dlls (i.e Telerik.ReportViewer.Wpf.dll version 6.2.12.1017)
Help?
4 Answers, 1 is accepted
We will need additional details or better yet a runnable sample that exhibits the issue so that we are able to reproduce it at our end - this will help us identify the problem faster and advise you accordingly. Additionally, please post the full stack trace, so we can get better idea where the problem occurs.
All the best,
Steve
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
It is easy to reproduce, please to the following experiment. Simply create a WPF solution with the following as the MainWindow.xaml
<Window x:Class="ReportingAndDocking.MainWindow"
xmlns:tr="http://schemas.telerik.com/wpf"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<telerik:RadDocking>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup >
<telerik:RadPane Header="Dock Me">
<tr:ReportViewer Name="reportViewer" />
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
</Window>
Then run the program and dock the RadPane "Dock Me" anywhere in the app window.
Telerik.ReportViewer.Wpf 6.2.12.1017 has no problem
but
Telerik.ReportViewer.Wpf 6.2.13.123 gives the following error:
{"Object reference not set to an instance of an object."}
Stack Trace
at Telerik.ReportViewer.Wpf.ReportViewerModel.SetReportSourceEffective(ReportSource source) in c:\Temp\reporting\@RBuild-18760\Reporting_Build\Net20\Telerik.ReportViewer.Wpf\ReportViewerModel.cs:line 983
at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReport() in c:\Temp\reporting\@RBuild-18760\Reporting_Build\Net20\Telerik.ReportViewer.Wpf\ReportViewerModel.cs:line 969
at Telerik.ReportViewer.Wpf.ReportViewer.RefreshReport() in c:\Temp\reporting\@RBuild-18760\Reporting_Build\Net20\Telerik.ReportViewer.Wpf\ReportViewer.cs:line 393
at Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(Object sender, RoutedEventArgs e) in c:\Temp\reporting\@RBuild-18760\Reporting_Build\Net20\Telerik.ReportViewer.Wpf\ReportViewer.cs:line 329
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at ReportingAndDocking.App.Main() in c:\Users\lovell.mw\Documents\Visual Studio 2012\Projects\ReportingAndDocking\ReportingAndDocking\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Thank you for the provided input. We were able to reproduce the issue locally and it is now logged into our systems. We will do our best to fix it as soon as possible. For the time being there is no available workaround, but if we find something we will get back to you.
We apologize for the temporary inconvenience. Your Telerik points have been updated.
Greetings,
IvanY
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you for your efforts on this issue.