Author: Visual Web Developer | Posted on: 9/17/2009 3:57:52 PM | Views : 2293

 When trying to append to an existing file in Isolated Storage, I get this exception but if I change from FileMode.Append to File.Create, it works great.
Why do I get this error when: FileMode.Append ? The exception occurs for the line FileMode.Append
Operation not permitted on IsolatedStorageFileStream

IsolatedStorageFile s = IsolatedStorageFile.GetUserStoreForApplication(); String FileName = "FileThatExist.txt"; IsolatedStorageFileStream Out = new IsolatedStorageFileStream(FileName, FileMode.Append, FileAccess.ReadWrite, s); StreamWriter WriteF = new StreamWriter(Out); WriteF .WriteLine("TestLine"); WriteF .Close();
 
 

...

Go to the complete details ...