I was working with storing and retrieving structured data in Isolated Storage. While Binging I came across nicely written Generic Object Storage Helper for WinRT . This is written by Jamie Thomson . When I tried using this utility I came across an exception. I tried to store object of Student as following.

After inspecting I found that library is written in Developer Preview and few API has been changed in Consumer Preview. Thankfully Jamie Thomson has put the source code on the CodePlex also. A big thank to him for the same. Rather than adding DLL and working with API, I copied and pasted code in my program and started to debug that.

First changes in API from DP to CP was that there were no TryMoveToRecycleBin in StorageDeleteOption enum

Now StorageDeleteOption enum contains only two values as below,

So I replaced above line of code as below,

The Second changes from DP to CP I found was removal of OpenWrite and OpenRead method from IRandomAcccessStream interface

Where readStream is defined as below,

And OpenWrite has been replaced with AsStreamForWrite

I have modified code to explicitly take filename as well. After these changes have been done Code was ready to be used in Consumer Preview. Updated helper class code is as following,

‘System.InvalidOperationException’ occurred in System.Xml.dll System.Runtime.InteropServices.WindowsRuntime.RuntimeClass is inaccessible due to its protection level. Only public types can be processed.
Error At serializer = new XmlSerializer(typeof(T));

I so needed this thank you very much. I am only running into one problem where i get this error when trying to load data Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) – I did the change IRandomAccessStream readStream = await file.OpenReadAsync();