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

4 posts, 0 answers
  1. Steven
    Steven avatar
    18 posts
    Member since:
    Sep 2012

    Posted 15 Oct 2013 Link to this post

    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
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 18 Oct 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steven
    Steven avatar
    18 posts
    Member since:
    Sep 2012

    Posted 13 Dec 2013 Link to this post

    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.
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 18 Dec 2013 Link to this post

    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 >>
Back to Top