I am in the throes of finishing up my 1st WP7 app, and I am now experiencing a strange error that has just popped up.
When I save data back to the Local Storage (Add mode) I get an error saying "Value does not fall within the expected range" This only accurs with a new key item, the update works fine.
Anyone got any thoughts or ideas?
// -----------------------------------------------------------------------------
//Setting the fileName
// IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings;
// -----------------------------------------------------------------------------
// -------------------------------Local Storage----------------------------------------------
public void setLocalStorage(string key, object value) {
try
{
// add new Anchorage/drift values
appSettings.Add(key, value);
}
catch (ArgumentException ex)
{
MessageBox.Show("An error occurred during writing the key " + key + ex, "ERROR", MessageBoxButton.OK);
}
}
// --------------------------------------------------------------------------------- Thanks in advance Phill