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

Loading RadGridView layout fails with System.NullReference Exception in Telerik.Windows.PersistenceFramework.dll

3 Answers 116 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 15 Oct 2013, 03:46 PM
We have been using RadGridView for over a year, quite successfully. We had an old project that implemented the Persistence Framework (using PersistenceManager) and successfully saved/loaded layouts. Now, however, in a new project using the latest DLLs (2013.2.724) the save works fine (supposedly) but the load fails. The error message in the output window is "A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.PersistenceFramework.dll".

We compared streams after saving and after loading and they are identical - so insofar as the save is working correctly, it is persisting the layout to the stream and then loading it back.

We have downloaded samples from these forums and they do indeed work (in the sample) so no one is sure what is going on. The grid we're trying to save is fairly trivial, nothing special. No custom properties, no custom filters. In fact, we copied the Proxies.cs and RadGridViewCustomPropertyProvider.cs from the sample application and it still fails with the same error.

Any assistance would be greatly appreciated. Opened a support ticket on this as well, but have not heard back yet.

Steve

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 18 Oct 2013, 12:59 PM
Hello Steven,
I'm sorry for the caused inconvenience. We're not aware of such issue in the PersistenceManager and I'd like to ask you for a sample project(you could send it in your support thread) so that we could investigate it and fix it if it's a bug.
We're looking forward to hearing from you again.

Regards,
Zarko
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Steven
Top achievements
Rank 1
answered on 13 Dec 2013, 02:59 PM
After a lot more diagnosis, the issue ended up being a problem with having the persistence manager functionality in a different DLL from the grids. Once we moved everything into the same DLL it worked exactly. Closing this issue.
0
Dimitrina
Telerik team
answered on 18 Dec 2013, 10:05 AM
Hello,

I am glad to hear you were able to resolve the issue. Thank you for sharing the reason for it.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PersistenceFramework
Asked by
Steven
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Steven
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or