Hi everyone,

I would like to access to the file system (only to store small things like
using IsolatedStorage on WP7).

If I well understand, to create a file I have to do this:
IsolatedStorageFile file = IsolatedStorageFile.
GetUserStoreForAssembly();
file.CreateFile(filename);

But an exception occured: "System.UnauthorizedAccessException: Access to
the path "/data/data/XXXX/files/.config" is denied."

I searched on the documentation, stackoverflow, etc. but I didn't find
solution.
So I tried an other way with OpenFileOutput.

To open a file I did this:
Stream fos = context.OpenFileOutput(filename,
Android.Content.FileCreationMode.Private);

But a FileNotFoundException occured. I search over the documentation and
found nothing that help me.

I want only access file for my application (not external).

Thanks for your answers,

PS: I already tried to desactivate the fast deployment but doesn't work.
And I work under the version  2.1 of Android.

--
Benjamin Baldacci linkedin <http://www.linkedin.com/in/benjaminbaldacci>
Mobile : +33 6 32 45 63 79
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to