Archive for December, 2009

This is a very simple case of saving a list of settings to Silverlight Isolated storage during an Application Exit event:

    IsolatedStorageSettings.ApplicationSettings[key] = settings;

When the application restarted, the ApplicationSettings were empty.     I did not received any errors until an explicit save was added:

    IsolatedStorageSettings.ApplicationSettings[key] = settings;

The save is normally not needed since the application settings are saved implicitly by the IsolatedStorageSettings class.  After the save was added, the following helpful exception was thrown:

The collection data contract type ‘System.Collections.Generic.List`1[[… ColumnSetting, … ‘ cannot be deserialized because it does not have a public parameterless constructor. Adding a public parameterless constructor will fix this error. …

Well, (duh) it turns out the problem had nothing to do with Isolated Storage.  Rather, it was the inadvertent omission of the public constructor that was causing the problem.




Read Full Post »

My Outlook PST file recently reached 3GB in size and, while Outlook will still performing ok, I needed to reduce the size of the file to keep the size of my nightly backup reasonable. 

I removed old and large messages from the Sent and Deleted messages folders and estimated that I freed up at least 1/3 of my used space.  I tried compacting the file through Outlook and through the Control Panel Mail applet.  The compaction finished too quickly and the file remained the same size.

This was solved by rebooting and going directly to the Control Panel Mail applet (double click Personal folders line and click the Compact Now button) before opening Outlook.  My PST file is now 1.2GB.

I hope this helps someone else.

Read Full Post »