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

RadDataPager Target of Invocation Error

12 Answers 108 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
jay
Top achievements
Rank 1
jay asked on 10 Oct 2011, 07:18 AM

I am working on a Silverlight 5 RC solution with RadControls Q2 2011 on IE9.
RadDataPager always displays an error in design view. Even if i drag the control from the toolbox to the UI i get the Target of Invocation Error. Sometimes it comes up with MissingMethodException.
I suspect it is not a problem with my solution as i cannot even load any of the UIs in the  \Telerik\RadControls for Silverlight Q2 2011\Demos\Examples\DataPageri n design view, even though the solution compiles and runs ok.

Anyone has an explanation for this?

Thanks

12 Answers, 1 is accepted

Sort by
0
Jeremy
Top achievements
Rank 1
answered on 20 Oct 2011, 08:08 PM
I'm running into the same problem. The July version (v2011.2 712) works, but the September one (v2011.2 920) doesn't. I'm still on the SL 5 beta because I had too many issues with SL 5 RC. Looking at the change notes for 920, there were two bug fixes for RadDataPager. 

  • Fixed: DataPagerAutomationPeer GetChildren().
  • Fixed: RadDataPager does not properly dispose its PagedSource.
0
Vlad
Telerik team
answered on 21 Oct 2011, 09:22 AM
Hi,

 This design-time error was reported to Microsoft and already fixed in latest versions of Silverlight 5. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Omer
Top achievements
Rank 1
answered on 23 Nov 2011, 09:19 PM
I am running into the same problem using version 2011.2.920.1040. What version should I be using and where can I get it?

Omer
0
jay
Top achievements
Rank 1
answered on 10 Dec 2011, 02:24 AM
Invocation error still shows up after upgrading to the Released version of Silverlight 5
0
Chris
Top achievements
Rank 1
answered on 19 Dec 2011, 11:18 PM
I'm getting the same error still too with SL 5 rockin. Pretty much makes it so I can't use the designer...
0
Vlad
Telerik team
answered on 20 Dec 2011, 08:48 AM
Hello,

 Unfortunately they've not included fix for this in the official Silverlight 5 - you can cast your vote here and hopefully the bug will be fixed in some of the future patches.  

The only thing we can do for now is to try/catch the Count call in our QueryableCollectionView. This change will be included in our upcoming service pack this week. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Henky Wibowo
Top achievements
Rank 1
answered on 29 Jan 2012, 08:13 AM
Hi,

I am running into the same problem with the Q3 2011 Silverlight RadDataPager and released version of SL5. How do I fix this issue?

TIA.
0
Vlad
Telerik team
answered on 30 Jan 2012, 08:40 AM
Hi,

 Are you getting the same with our SIlverlight 5 assemblies? 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Henky Wibowo
Top achievements
Rank 1
answered on 31 Jan 2012, 09:12 AM
I downloaded the RadControls_for_Silverlight5_2011_3_1220_DEV_hotfix. Replaced the binaries folder in installation folder. Same thing.
0
Vera
Telerik team
answered on 31 Jan 2012, 11:12 AM
Hi Henky,

You need to reset the toolbox and load the new binaries again. I tested you scenario and I didn't get any errors in design time. 

Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Henky Wibowo
Top achievements
Rank 1
answered on 31 Jan 2012, 11:03 PM
Hi,

It seemed to work at the beginning, but it errored out after a successful compile. I have not tried it on a new project after the update. Will that make a difference?

Thanks.
0
Henky Wibowo
Top achievements
Rank 1
answered on 31 Jan 2012, 11:26 PM
Figured out the issue. The DLLs were not copied since they were being used. I had to close down VS and copied them manually. All is working now.

Thanks.

Henky
Tags
DataPager
Asked by
jay
Top achievements
Rank 1
Answers by
Jeremy
Top achievements
Rank 1
Vlad
Telerik team
Omer
Top achievements
Rank 1
jay
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Henky Wibowo
Top achievements
Rank 1
Vera
Telerik team
Share this question
or