Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Sporadic UnauthorizedAccessException on IsolatedStorage

$
0
0

@reiti.net wrote:

I have a weird issue with savegames. This only happens once, when the app is freshly installed - restarting the app solves the issue and saving works just fine. It also happens just on some devices.

This is the code used - I think it's straightforward:

using (IsolatedStorageFile storage = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null))
                {
                    using (IsolatedStorageFileStream fs = storage.OpenFile(filename, System.IO.FileMode.Create))
                    {
                        fs.Write.....

afaik the exception is thrown at FileStream creation - any ideas would could be wrong? What puzzles me, is that it works once, tha app is restarted (and not running for the first time)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles