我正在使用 SDK 7.1 为 Windows Phone 开发一个简单的应用程序,但出现错误
未处理独立存储异常:未对独立存储文件流进行操作
内MainPage.xaml.cs
代码片段:
私人无效btnRd_file_Click(对象发送者,RoutedEventArgs e)
{ IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream FS = ISF.OpenFile("pwd1.txt", FileMode.Open, FileAccess.Read); using (StreamReader SR = new StreamReader(FS))
尝试在 Windows Phone 模拟器上运行应用程序时。