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

Could not load file Telerik.Windows.PersistenceFramework

4 Answers 215 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Tommy Z
Top achievements
Rank 1
Tommy Z asked on 25 Jan 2012, 06:44 PM
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?

4 Answers, 1 is accepted

Sort by
0
Tommy Z
Top achievements
Rank 1
answered on 25 Jan 2012, 10:06 PM
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.
0
Alex Fidanov
Telerik team
answered on 27 Jan 2012, 11:20 AM
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 >>

0
Muhammad
Top achievements
Rank 1
answered on 10 Jul 2012, 02:56 PM
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

0
Hristo
Telerik team
answered on 13 Jul 2012, 12:14 PM
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.

Tags
PersistenceFramework
Asked by
Tommy Z
Top achievements
Rank 1
Answers by
Tommy Z
Top achievements
Rank 1
Alex Fidanov
Telerik team
Muhammad
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or