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

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

3 Answers 110 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 22 Mar 2013, 08:08 AM
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)

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 22 Mar 2013, 08:22 AM
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.

0
Glen
Top achievements
Rank 1
answered on 22 Mar 2013, 08:39 AM
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
0
Accepted
Rosen Vladimirov
Telerik team
answered on 22 Mar 2013, 09:54 AM
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.

Tags
PivotGrid
Asked by
Glen
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Glen
Top achievements
Rank 1
Share this question
or