例外: 類型「System.IO.FileNotFoundException」的第一次機會異常出現在mscorlib.dll 型「System.IO.IsolatedStorage.IsolatedStorageException」的第一次機會異常出現在mscorlib.dll'System.IO.IsolatedStorage.IsolatedStorageException'的原因是什麼?
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();
}
現在在其它頁面
我正在通過執行此
ScorePage.settings [ 「的myKey」] = moves.ToString()更新其值;
所以每次我重新啓動我的模擬器並運行我的項目這個異常來了。 爲什麼?
你如何看看異常的消息? – 2012-03-08 11:01:22