Could not load file Telerik.Windows.PersistenceFramework

5 posts, 0 answers
  1. Tommy Z
    Tommy Z avatar
    9 posts
    Member since:
    Sep 2009

    Posted 25 Jan 2012 Link to this post

    I am attempting to use the Persistence Framework to save the state of a GridView into a database when the user clicks a button, using the demos extensively as a guideline.  I am able to register my custom property provider with no problem.  However, when the button is clicked to save the state, I get the following error:

    "Could not load file or assembly 'Telerik.Windows.PersistenceFramework, Version=2011.3.1116.1040, etc' or one of its dependencies.  The system cannot find the file specified.'

    I've narrowed the problem down to where the PersistenceManager object is being defined.  I have both Telerik.Windows.Controls.dll and Telerik.Windows.PersistenceFramework.dll defined as references in my project, and both are version 2011.3.1116.1040.  All the other telerik dll's being referenced are also the same version.  Is there another file that needs to be referenced that isn't listed in the help documentation?
  2. Tommy Z
    Tommy Z avatar
    9 posts
    Member since:
    Sep 2009

    Posted 25 Jan 2012 Link to this post

    There must be some conflict with Caliburn and the PersistenceFramework, at least that's my best guess.  I moved the code that does all of the serialization out of the ViewModel and into a separate project and was able to successfully save the grid state.
  3. DevCraft banner
  4. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 27 Jan 2012 Link to this post

    Hi,

    Is there any inner exception that could provide more information on this exception? The PersistenceFramework heavily relies of reflection to get the serialized types and restore objects, which I think might be the cause of this issue.

    All the best,
    Alex Fidanov
    the Telerik team

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

  5. Muhammad
    Muhammad avatar
    24 posts
    Member since:
    Mar 2012

    Posted 10 Jul 2012 Link to this post

    Hi,
    i have a problem ,i am registering grids for persistence storage ,all it only create the files but not loading or saving the settings of grids.
    on the page/usercontrol loaded event
    i am registering grids
     PersistenceManager.SetStorageId(grid1, PersistenceKey);

    and then after that using the isolated storage
    IsolatedStorageProvider 
    object i am calling the respective methods on loaded and unloaded events of the usercontrol.
    i am not registering the control using the xaml.
    kindly help me on this.regards shabbir

  6. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 13 Jul 2012 Link to this post

    Hello,

    I've posted an answer to your separate forum thread: http://www.telerik.com/community/forums/silverlight/persistence-framework/cannot-load-or-save-the-grid-settings-using-persistence-framework.aspx 

    Regards,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner