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

2010 Q1 reference error

5 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas Garp
Top achievements
Rank 1
Thomas Garp asked on 11 Mar 2010, 09:26 AM
I have this line, wich worked with the latest version of 2009.
    

var items = gridView.Items

as Telerik.Windows.Data.DataItemCollection;

 


The type 'System.ComponentModel.IPagedCollectionView' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 

I have a reference to the System.Windows.Data Version=2.0.5.0 - I've checked the PublicKeyToken.

I have a reference to the following Telerik dlls: (I use other telerik controls - not only the GridView)
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.DataVisualization
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Charting
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Data
Telerik.Windows.Themes.Windows7

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Mar 2010, 09:30 AM
Hi,

Can you send us an example project where this can be reproduced?

All the best,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Thomas Garp
Top achievements
Rank 1
answered on 11 Mar 2010, 10:08 AM
When trying to create a test project, I found that everything worked.

So after several "clean solution" and manual bin deletes, Visual Studio finally recognized that the System.Data were referenced.

Thank you for your reply.
0
Nick Wood
Top achievements
Rank 1
answered on 15 Mar 2010, 02:05 AM
Hi There

I have the exact same error. I have deleted the bin folders and cleaned and rebuilt about 40 times and still have the exact same error.. any help would be appreciated.

Thanks for your help

Nick
0
Nick Wood
Top achievements
Rank 1
answered on 15 Mar 2010, 02:14 AM
Sorry, found the issue.

Added a reference to System.Windows.Data as well, which was not required for 2009 Q3
0
Gerardo
Top achievements
Rank 1
answered on 14 Jun 2010, 10:59 PM
SoluciĆ³n:

Hay que agregar la referencia System.Windows.Data del folder: C:\Archivos de Programa\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\

Saludos.
Tags
GridView
Asked by
Thomas Garp
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Thomas Garp
Top achievements
Rank 1
Nick Wood
Top achievements
Rank 1
Gerardo
Top achievements
Rank 1
Share this question
or