Operation not permitted on IsolatedStorageFileStream. error
问题 I have a problem with isolated storage. This is my code: List<Notes> data = new List<Notes>(); using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isoStream = isoStore.OpenFile("Notes.xml", FileMode.OpenOrCreate)) { XmlSerializer serializer = new XmlSerializer(typeof(List<Notes>)); data = (List<Notes>)serializer.Deserialize(isoStream); } } data.Add(new Notes() { Note = "hai", DT = "Friday" }); return data; the mistake :