This is the declaration for save_g
public static IsolatedStorageSettings save_g = IsolatedStorageSettings.ApplicationSettings;
here cons.term[7] is of type string
save_g[cons.term[7]] = (double)save_g[cons.term[7]] + 1;
The statement above executes with no problem on the emulator. But when I run it on device (Lumia 820) it gives error.
A first chance exception of type 'System.InvalidCastException' occurred in PhoneApp2.DLL
An exception of type 'System.InvalidCastException' occurred in PhoneApp2.DLL but was not handled in user code
And I have no idea whats wrong.
Plz help.