Search code examples
c#asp.netteleriktelerik-grid

Telerik RadPersistenceManager Unable to read storage content


I've used RadPersistenceManager with asp.net and follow the following guide :

http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx.

But when I implement this in my project the following exception appears:

Title: xxxx.aspx, xxxxx Method Name: Unable to read storage content. Could not find file 'C:\inetpub\wwwroot\XXXX\App_Data\TelerikAspNetRadControlsPersistedState'.

Exception: at Telerik.Web.UI.PersistenceFramework.AppDataStorageProvider.LoadStateFromStorage(String key) at Telerik.Web.UI.RadPersistenceManager.LoadState() at GraphicalUserInterface.JobBasket.LoadGridJobBasket()


Solution

  • The different between the demo and my example that I need to load the persistence configurations on page load instead of load button. so it seems some times the CookieStorageProvider not initiated in Page_Init, so I added it in page_load instead.