This is really fast but it took me a while to figure out. I was getting the following on my recent project when I tried to save something using IsolatedStorageSettings:
“Operation not permitted on IsolatedStorageFileStream.”
And I couldn’t find anything about it other than a very generic “Looks like a threading problem” answers.
Long story short:
I was, in rapid succession, running the same save code twice. What I think happened was that the IsolatedStorageFileStream was still open and trying to save when I tried to get it to save again on another thread.
That’s my guess. I figured I’d toss up this short post on it before I forgot what the problem was.
Spot on with this write-up, I truly believe this site needs far more attention.
I’ll probably be returning to see more, thanks for the info!
Thanks for the auspicious writeup. It actually was
once a amusement account it. Look complex to more introduced agreeable
from you! However, how can we be in contact?
If the file is already open for read/write you should not do the same action over that file in the isolated storage. Otherwise you will always receive this exception.