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

MethodAccessException

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 19 Jul 2012, 04:05 PM
I recently updated a popular windows phone app to use many of the nice Telerik features.  It is a great improvement and people love it.  However, I have reports from a few people that the app is no longer as stable as it used to be, which has me worried.



Here is a stack trace I got via my error reporting mechanism this morning.  I am wondering what might cause a MethodAccessException here and how I might address this issue?  Funny, it seems the MethodAccessException was thrown during an attempt to throw some other type of exception.



Application_UnhandledException

Type: System.MethodAccessException

Message: Attempt to access the method failed: System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)

   at Telerik.Windows.Controls.VirtualizationStrategy.GetContainerForItem(IDataSourceItem item, Int32 insertAt)

   at Telerik.Windows.Controls.StackVirtualizationStrategy.GetContainerForItem(IDataSourceItem item, Int32 insertAt)

   at Telerik.Windows.Controls.VirtualizationStrategy.GetContainerForItem(IDataSourceItem item, Boolean insertLast)

   at Telerik.Windows.Controls.VirtualizationStrategy.ManageLowerViewport(Boolean recycle)

   at Telerik.Windows.Controls.RadVirtualizingDataControl.ManageViewport()

   at Telerik.Windows.Controls.RadVirtualizingDataControl.BalanceVisualSpace()

   at Telerik.Windows.Controls.RadVirtualizingDataControl.OnVerticalScrollOffsetChanged(Boolean balanceImmediately)

   at Telerik.Windows.Controls.RadDataBoundListBox.OnVerticalScrollOffsetChanged(Boolean balanceImmediately)

   at Telerik.Windows.Controls.RadVirtualizingDataControl.ch(Object A_0, EventArgs A_1)

   at System.Windows.Media.CompositionTarget.OnRendering(Object sender, RenderingEventArgs e)

   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 20 Jul 2012, 12:03 PM
Hello Paul,

Thanks for writing and for choosing RadControls for Windows Phone.

From the stack trace it is clear that this issue happens in our list box control. However, it will be difficult for us to determine the reason for the exception without reproducing it on our side. We have never received reports for similar problems in DataBoundListBox and therefore it will be great if you manage to gather some more information about the scenario in which the exception occurs and share it with us.

Let us know if we can further assist you or in case you have any questions.

Thanks for your time.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or