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

Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'.

13 Answers 400 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.
Shrikant
Top achievements
Rank 1
Shrikant asked on 22 Feb 2012, 09:47 AM
Hi Telerik Team,

I upgraded my Silverlight Runtime Developer ver.4 to 5 (except SDK & toolkit) 
& Telerik RadDataPager Controls is throwing exception.

Currently I have Telerik Build 2011.3.1116.1040
Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'.
   at System.Dynamic.Utils.TypeExtensions.CreateDelegate(MethodInfo methodInfo, Type delegateType, Object target)
   at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate()
   at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator)
   at System.Linq.EnumerableExecutor`1.Execute()
   at System.Linq.EnumerableExecutor`1.ExecuteBoxed()
   at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression)
   at Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableExtensions.cs:line 404
   at Telerik.Windows.Data.QueryableCollectionView.UpdateTotalItemCount() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1872
   at Telerik.Windows.Data.QueryableCollectionView..ctor(IEnumerable sourceCollection) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 62
   at Telerik.Windows.Controls.Data.DataPager.DataPagerViewModel..ctor(IEnumerable source, Int32 pageSize, Boolean isTotalItemCountFixed, Int32 pageIndex) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\DataPagerViewModel.cs:line 359
   at Telerik.Windows.Controls.RadDataPager.get_ViewModel() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 674
   at Telerik.Windows.Controls.RadDataPager.UpdateItemCount() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 1046
   at Telerik.Windows.Controls.RadDataPager.UpdateControl() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 990
   at Telerik.Windows.Controls.RadDataPager.EndInitInternal() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 807
   at Telerik.Windows.Controls.RadDataPager.EndInit() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 761

Is That mean, only Telerik Data Controls are not working with Silverlight 5?

Can you please tell me , How to fix this problem?

13 Answers, 1 is accepted

Sort by
0
Shrikant
Top achievements
Rank 1
answered on 23 Feb 2012, 06:03 AM
Finally Above error solved after performing some few installation steps :

1. Installed Silverlight 5 Tools for Visual Studio 2010 SP1 (SDK) (http://www.silverlight.net/downloads)
2. Installed Silverlight 5 Rumtime Developer
3. & Installed New Build of Telerik Silverlight 5 Controls ( File Ver. 2012.1.215.1050 )
0
Shrikant
Top achievements
Rank 1
answered on 23 Feb 2012, 06:55 AM
Now , This is very bad

Above error still occur with SL 4, so that means If you are running with SL4 projects
you will need to set TargetFramework to 5 or Create New Projects with SL 5.

Telerik Team , Can you please update anything here?
When this will be get done?
0
OmarOrnelas
Top achievements
Rank 1
answered on 23 Feb 2012, 04:48 PM
I am having the same problem with our existing SL 4 projects (that we are not ready to move up to 5 just yet) I would also like a solution for this. I had to do a system restore at one point on my system to be able to work on my SL 4 projects.
0
Ed.
Top achievements
Rank 1
answered on 26 Feb 2012, 10:23 AM
I am having the same problem with our existing SL 4 projects (that we are not ready to move up to 5 just yet) I would also like a solution for this. I had to do a system restore at one point on my system to be able to work on my SL 4 projects 
0
Gal
Top achievements
Rank 2
answered on 27 Feb 2012, 11:04 AM
Same thing here any news ? 
0
Boyan
Telerik team
answered on 28 Feb 2012, 05:59 PM
Hi,

We are having some problems reproducing this behavior. Could you please try if this happens with a new SL4 project that you create or just with an old project after the upgrade to SL5 runtime?

Regards,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gal
Top achievements
Rank 2
answered on 28 Feb 2012, 06:04 PM
Currently it's an old SL project.
0
Accepted
Dimitrina
Telerik team
answered on 02 Mar 2012, 01:46 PM
Hi,

Indeed there was such a problem with the designer. It was fixed and if you use the Q3 2011 SP binaries, you will not get this error any more.

Please check and let me know if you still have the problem with the version '2011.3.1220.1040'?


All the best,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gal
Top achievements
Rank 2
answered on 02 Mar 2012, 02:38 PM
Hi I'm getting the following error 

Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'.
   at System.Dynamic.Utils.TypeExtensions.CreateDelegate(MethodInfo methodInfo, Type delegateType, Object target)
   at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate()
   at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator)
   at System.Linq.EnumerableExecutor`1.Execute()
   at System.Linq.EnumerableExecutor`1.ExecuteBoxed()
   at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression)
   at Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableExtensions.cs:line 399
   at Telerik.Windows.Data.QueryableCollectionView.UpdateTotalItemCount() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1733
   at Telerik.Windows.Data.QueryableCollectionView..ctor(IEnumerable sourceCollection) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 62
   at Telerik.Windows.Controls.Data.DataPager.DataPagerViewModel..ctor(IEnumerable source, Int32 pageSize, Boolean isTotalItemCountFixed, Int32 pageIndex) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\DataPagerViewModel.cs:line 359
   at Telerik.Windows.Controls.RadDataPager.get_ViewModel() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 674
   at Telerik.Windows.Controls.RadDataPager.UpdateItemCount() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 1046
   at Telerik.Windows.Controls.RadDataPager.UpdateControl() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 990
   at Telerik.Windows.Controls.RadDataPager.EndInitInternal() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 807
   at Telerik.Windows.Controls.RadDataPager.EndInit() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:line 761
0
Dimitrina
Telerik team
answered on 02 Mar 2012, 02:45 PM
Hello,

 I have used the attached project for testing. Could you please change it so that I can see where my mistake is?

All the best,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Stanislaw
Top achievements
Rank 1
answered on 11 Mar 2012, 06:55 PM
I've got the same problem with my projects.

Probably the easiest way to repro this is to open "DomainDataSource" demo from  "RadControls for Silverlight Q1 2011".
0
Anatoly Chekh
Top achievements
Rank 1
answered on 22 Mar 2012, 10:45 AM
Hello.

We have error like this.
Can you explaine, what path "c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\..." does mean? We dont have any files into this folder.
Why you try to get anything from this path?

Thanks, Anatoly.
0
Ray White
Top achievements
Rank 1
answered on 01 May 2012, 07:53 PM
I get this same error when I attempt to open Example.xaml in Sparkline.Silverlight\LargeData in the ExamplesCS_SL solution.  (This is the Telerik example program, download on 5/1/2012.)
Tags
General Discussions
Asked by
Shrikant
Top achievements
Rank 1
Answers by
Shrikant
Top achievements
Rank 1
OmarOrnelas
Top achievements
Rank 1
Ed.
Top achievements
Rank 1
Gal
Top achievements
Rank 2
Boyan
Telerik team
Dimitrina
Telerik team
Stanislaw
Top achievements
Rank 1
Anatoly Chekh
Top achievements
Rank 1
Ray White
Top achievements
Rank 1
Share this question
or