MethodAccessException

2 posts, 0 answers
  1. Paul
    Paul avatar
    6 posts
    Member since:
    Dec 2011

    Posted 19 Jul 2012 Link to this post

    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)

  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 20 Jul 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top