IsolatedStorage

There are 1 entries for the tag IsolatedStorage
Beware of .cache files on IsolatedStorage

Today I lost some time trying to figure out why my Windows Phone 7 application settings got lost as soon as the application was restarted. After several tests have concluded that the offending code was following one, which, at startup, deletes some “*.cache” files used by the application to store some temporary information. private void ClearCache(){ string[] cacheFiles = this.store.GetFileNames("*.cache"); foreach (string cacheFile in cacheFiles) { this.Delete(cacheFile); }} Everything looks ok, except that the application settings are stored in a file called “__ApplicationSettings.cache” and so they were...

posted @ Friday, October 15, 2010 8:41 AM | Feedback (1)