New quota must be larger than the old quota exception

5 posts, 1 answers
  1. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 15 Aug 2011 Link to this post

    I'm using the Persistence framework to save and load RadDocking and a TreeView to Isolated Storage. I'm using a custom property provider for RadDocking and is working fine.
    After a few saves, I'l get an error "New quota must be larger than the old quota exception" (see attached image). Once this happens I cannot save to Isolated Storage again.  I'm wondering if this is a problem on Telerik's side or am I supposed to catch this error and do something.
  2. Vivek
    Vivek avatar
    50 posts
    Member since:
    Jul 2011

    Posted 15 Aug 2011 Link to this post

    Hi Scott,

    This is a telerik issue. even I am getting same error.

    Thanks,
    Vivek.
  3. DevCraft banner
  4. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 15 Aug 2011 Link to this post

    I tried increasing my Isolated Storage from 1.0MB to 6.0MB and the error went away.

    I'm still curious how Telerik recommends handling this exception. It might be that we are supposed to trap the error and then ask the user to increase the storage size then attempt to save the persistence again.
  5. Answer
    Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 16 Aug 2011 Link to this post

    Hi Scott,

    Thank you for reporting this issue. This has already been resolved with the latest internal build (from 15. Aug) and you should not see this exception anymore. The persistence framework would try to increase the quota if needed, but as this action must be user initiated, sometimes it would not succeed. When this happens, you can handle the QuotaRequested event of the IsolatedStorageProvider and check the IsSuccess property to see if the increase was successful. In the event args, you also have the size of the requested bytes and the file streams of the saved data.

    Furthermore, we have exposed a method for quickly increasing the quota on the IsolatedStorageProvider itself.

    Please let me know when you re-test this with the internal build and if you still see this exception occuring.

    All the best,
    Alex Fidanov
    the Telerik team

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

  6. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 16 Aug 2011 Link to this post

    Thanks for the information. I probably will not test this for a while because I was using Isolated Storage for learning the persistence framework. I'll be streaming the XML to a database for my project.
Back to Top
DevCraft banner