windows phone 7 - what is the cause of 'System.IO.IsolatedStorage.IsolatedStorageException'? -


exceptions: first chance exception of type 'system.io.filenotfoundexception' occurred in mscorlib.dll first chance exception of type 'system.io.isolatedstorage.isolatedstorageexception' occurred in mscorlib.dll

    public static isolatedstoragesettings settings = isolatedstoragesettings.applicationsettings;      private void getscoredata()     {         if (settings.contains(dataitem2.name))         {             this.textblock2.text = settings[dataitem2.name].tostring();         }         else          {             settings.add(dataitem2.name, "n/a");             this.textblock2.text = "n/a";         }         settings.save();     } 

now in other page

i updating value doing this

scorepage.settings["mykey"] = moves.tostring();

so everytime restart emulator , run project exception comes. reason why?

the isolated storage in emulator not persisted after close it.

reference: windows phone emulator: (see features)

isolated storage available while emulator running. data in isolated storage not persist after emulator closes. includes files stored in local database, these files reside in isolated storage. suggest use site settings on application settings. 1 more thing, dont worry windows phone persistent.(only emulator not!)


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -