“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.

5 thoughts on ““Operation Not Permitted” On IsolatedStorageSettings in Windows Phone

  1. 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?

  2. Pingback: WindowsDevNews.com
  3. 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.

Comments are closed.