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 @ venerdì 15 ottobre 2010 09:41 | Feedback (1)