'System.MethodAccessException' occurred in Telerik.Pivot.Core.dll

4 posts, 1 answers
  1. Glen
    Glen avatar
    2 posts
    Member since:
    Aug 2012

    Posted 22 Mar 2013 Link to this post

    With Version 2013 Q1 (2013.1.220.40), I created a simple pivot grid with LocalDataSourceProvider (just following the get-start instructions http://www.telerik.com/help/wpf/radpivotgrid-getting-started.html ), however, the grid does not show up. And inside Visual Studio - Output window, the following exception log is shown:

    A first chance exception of type 'System.MethodAccessException' occurred in Telerik.Pivot.Core.dll

    I have tried the similar codes with version 2012 Q3 and it works. Is it a new bug?

    (Note that I'm using .NET 4.0 with Binaries.NoXaml)
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 22 Mar 2013 Link to this post

    Hi Glen,

    This is a .NET problem caused by the DataAnnotations assembly which RadPivotGrid uses internally. You can read additional details here.
    To fix it you will have to install .NET 4.5. There's no need to change the framework version of the project - you can still use .NET 4.0.
     
    Hopefully this helps. Feel free to contact us if you have any other problems or concerns. 

    Kind regards,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Glen
    Glen avatar
    2 posts
    Member since:
    Aug 2012

    Posted 22 Mar 2013 Link to this post

    Hello Rosen Vladimirov,

    Does it mean both the development and end-user machine have to install .NET 4.5 to solve it? Some of our target clients keep running Windows XP which .NET 4.5 is not supported. Is there any alternatives? Besides, does it mean that .NET 4.5 is required for the upcoming updates of Telerik products?

    Regards,
    Glen
  5. Answer
    Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 22 Mar 2013 Link to this post

    Hi Glen,

    The problem is related to .NET 4.0 and VisualStudio. Instead of installing .NET 4.5, you can disable VisualStudio hosting process (check attachment) and it will work fine. Nevertheless I tested a simple RadPivotGrid project created for .NET 4.0 on a machine with .NET 4.5 installed, on Windows XP SP3 (only Silverlight and .NET 4.0 are installed on it). RadPivotGrid is working fine. So the problem is related to the debug process of VisualStudio and there's no need for your customers to have .NET 4.5.

    For your next question, you can check our Roadmap here.

    Hopefully this clears it out.

    Greetings,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top