This question is locked. New answers and comments are not allowed.

Manikandan
Top achievements
Rank 1
Manikandan
asked on 04 Feb 2015, 11:03 AM
We using the "Telerik.Windows.Controls.dll" Version : 2009.2.701.1020 in a silverlight 5 project (Migrated project), its throwing error as "Could not load file or assembly 'System.Xml.Linq,Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified." while setting the "ItemsSource".
Please help us on this...
Please help us on this...
3 Answers, 1 is accepted
0
Hello Manikandan,
Did you try to add a reference to the mentioned binary (System.Xml.Linq.dll)? If it doesn't help try to clean/rebuild the project and if you still have the issue, please share some sample code that reproduces the issue.
Hope this helps.
Regards,
Kalin
Telerik
Did you try to add a reference to the mentioned binary (System.Xml.Linq.dll)? If it doesn't help try to clean/rebuild the project and if you still have the issue, please share some sample code that reproduces the issue.
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Manikandan
Top achievements
Rank 1
answered on 11 Feb 2015, 09:44 AM
Hi kalin,
I am using a Silverlight 5 project which has 'System.Xml.Linq.dll' version '5.0.5.0' as reference. This project is a migrated project.
In this we are using the 'Telerik.Windows.Controls' Version '2009.2.701.1020' run time version 'v2.0.50727'.
Code :
List<CreditHoldOrders> objOrders = new List<CreditHoldOrders>();
objOrders = e.Result;
RadGridViewRequest.ItemsSource = objOrders;
Error:
Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at Telerik.Windows.Data.ListBindingHelper.IsTypeXmlRelated(Type type)
at Telerik.Windows.Data.ListBindingHelper.GetItemTypeFromGenericEnumerable(Type typeOfEnumerable)
at Telerik.Windows.Data.ListBindingHelper.GetListItemPropertiesByEnumerable(IEnumerable enumerable)
at Telerik.Windows.Data.ListBindingHelper.GetListItemProperties(Object list)
at Telerik.Windows.Data.TableDefinition.InitializeDefinitionData(Object newDataSource)
at Telerik.Windows.Data.TableDefinition.OnDataSourceChanged(EventArgs e)
at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass3c.<Bind>b__3b()
at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
at Telerik.Windows.Controls.GridView.GridViewDataControl.Bind(Object newValue)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsSourceChanged(Object oldValue, Object newValue)
at Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(DependencyObject origin, DependencyPropertyChangedEventArgs args)
at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at Telerik.Windows.Controls.DataControl.set_ItemsSource(Object value)
at Chempoint.FiveCardDraw.SL.CreditHoldCommon.objClient_GetCreditHoldOrdersCompleted(Object sender, GetCreditHoldOrdersCompletedEventArgs e)
Thanks,
Mani
I am using a Silverlight 5 project which has 'System.Xml.Linq.dll' version '5.0.5.0' as reference. This project is a migrated project.
In this we are using the 'Telerik.Windows.Controls' Version '2009.2.701.1020' run time version 'v2.0.50727'.
Code :
List<CreditHoldOrders> objOrders = new List<CreditHoldOrders>();
objOrders = e.Result;
RadGridViewRequest.ItemsSource = objOrders;
Error:
Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at Telerik.Windows.Data.ListBindingHelper.IsTypeXmlRelated(Type type)
at Telerik.Windows.Data.ListBindingHelper.GetItemTypeFromGenericEnumerable(Type typeOfEnumerable)
at Telerik.Windows.Data.ListBindingHelper.GetListItemPropertiesByEnumerable(IEnumerable enumerable)
at Telerik.Windows.Data.ListBindingHelper.GetListItemProperties(Object list)
at Telerik.Windows.Data.TableDefinition.InitializeDefinitionData(Object newDataSource)
at Telerik.Windows.Data.TableDefinition.OnDataSourceChanged(EventArgs e)
at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass3c.<Bind>b__3b()
at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
at Telerik.Windows.Controls.GridView.GridViewDataControl.Bind(Object newValue)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsSourceChanged(Object oldValue, Object newValue)
at Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(DependencyObject origin, DependencyPropertyChangedEventArgs args)
at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at Telerik.Windows.Controls.DataControl.set_ItemsSource(Object value)
at Chempoint.FiveCardDraw.SL.CreditHoldCommon.objClient_GetCreditHoldOrdersCompleted(Object sender, GetCreditHoldOrdersCompletedEventArgs e)
Thanks,
Mani
0
Hi Manikandan,
Since you are using such old version of the Silverlight suite, please try adding a reference to the "2.0.5.0" version of System.Xml.Linq.dll in order to avoid issues. However what we can recommend is to upgrade to the latest release version of the controls.
Hope this helps.
Regards,
Kalin
Telerik
Since you are using such old version of the Silverlight suite, please try adding a reference to the "2.0.5.0" version of System.Xml.Linq.dll in order to avoid issues. However what we can recommend is to upgrade to the latest release version of the controls.
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.