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

GridView Exception on Page Navigation

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
intellitechcorporation
Top achievements
Rank 1
intellitechcorporation asked on 30 Oct 2012, 10:20 PM
WPF Version: 2012.1.326.40 Framework: 4.0.30319

I have been having an issue ever since I started using the Telerik product suite, it's very rare, but it's absolutely driving me up the wall as I am absolutely dumbfounded as to what the cause is.

Every once in awhile, while navigating to a different page, I get this exception:

System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Remove(GeneratorPosition position, Int32 count, Boolean isRecycling)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IRecyclingItemContainerGenerator.Recycle(GeneratorPosition position, Int32 count)
   at Telerik.Windows.Controls.GridView.BaseItemsControl.ClearRelizedChildren()
   at Telerik.Windows.Controls.GridView.BaseItemsControl.SetItemContainerGenerator(GridViewItemContainerGenerator containerGenerator)
   at Telerik.Windows.Controls.GridView.BaseItemsControl.ResetItemContainerGenerator()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(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.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   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.InvokeImpl(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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at APSSSentinel.App.Main()

This is something I have simply not been able to reproduce on a consistent basis, and something I haven't been able to isolate.  I will try to provide any other information that you need, but I just had to give posting this a shot as it is driving me insane.

2 Answers, 1 is accepted

Sort by
0
Accepted
Yordanka
Telerik team
answered on 31 Oct 2012, 07:32 AM
Hi Kyle,

I couldn't find such an exception report in our records and with the details provided I am not able to reproduce it. Can you download our latest official version - Q3 2012 and test with it?
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
intellitechcorporation
Top achievements
Rank 1
answered on 18 Dec 2012, 07:49 PM
Sorry, took me awhile to upgrade to the newest version because I was waiting until I was able to renew my premium collection account.  This appears to have fixed the issue (2012.3.1129.40).
Tags
GridView
Asked by
intellitechcorporation
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
intellitechcorporation
Top achievements
Rank 1
Share this question
or