Could not load file or assembly System.Xml.Linq

4 posts, 0 answers
  1. Manikandan
    Manikandan avatar
    2 posts
    Member since:
    Feb 2015

    Posted 04 Feb 2015 Link to this post

    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...

  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 06 Feb 2015 Link to this post

    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
     

    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.

     
  3. DevCraft banner
  4. Manikandan
    Manikandan avatar
    2 posts
    Member since:
    Feb 2015

    Posted 11 Feb 2015 Link to this post

    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
  5. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 13 Feb 2015 Link to this post

    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
     

    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.

     
Back to Top