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

14 posts, 1 answers
  1. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 22 Feb 2012 Link to this post

    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?
  2. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 23 Feb 2012 Link to this post

    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 )
  3. DevCraft banner
  4. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 23 Feb 2012 Link to this post

    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?
  5. OmarOrnelas
    OmarOrnelas avatar
    10 posts
    Member since:
    Sep 2010

    Posted 23 Feb 2012 Link to this post

    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.
  6. Ed.
    Ed. avatar
    1 posts
    Member since:
    Mar 2007

    Posted 26 Feb 2012 Link to this post

    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 
  7. Gal
    Gal avatar
    48 posts
    Member since:
    Apr 2009

    Posted 27 Feb 2012 Link to this post

    Same thing here any news ? 
  8. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 28 Feb 2012 Link to this post

    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 >>
  9. Gal
    Gal avatar
    48 posts
    Member since:
    Apr 2009

    Posted 28 Feb 2012 Link to this post

    Currently it's an old SL project.
  10. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 02 Mar 2012 Link to this post

    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 >>
  11. Gal
    Gal avatar
    48 posts
    Member since:
    Apr 2009

    Posted 02 Mar 2012 Link to this post

    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
  12. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 02 Mar 2012 Link to this post

    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 >>
  13. Stanislaw
    Stanislaw avatar
    1 posts
    Member since:
    May 2011

    Posted 11 Mar 2012 Link to this post

    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".
  14. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 22 Mar 2012 Link to this post

    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.
  15. Ray White
    Ray White avatar
    5 posts
    Member since:
    Feb 2007

    Posted 01 May 2012 Link to this post

    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.)
Back to Top
DevCraft banner