“Operation Not Permitted” On IsolatedStorageSettings in Windows Phone
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.
This entry was posted in Silverlight, Windows Phone, Windows Phone 7 and tagged Errors, IsolateStorageSettings, Mango, Windows Phone 7. Bookmark the permalink.
5 Responses to “Operation Not Permitted” On IsolatedStorageSettings in Windows Phone
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?
Pingback: WindowsDevNews.com
Pingback: Dew Drop – January 13, 2012 (#1,241) | Alvin Ashcraft's Morning Dew
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.