Bug 4101 - calling System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication ().GetDirectoryNames causes exception
Summary: calling System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplicat...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2012-03-26 17:33 UTC by David
Modified: 2012-03-27 08:54 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David 2012-03-26 17:33:21 UTC
Place the following code in Finished Launching.  The last line will throw a security exception.  The exception is thrown on both the emulator and a device.  This behavior is not exhibited on Windows Phone 7 Silverlight libraries.  Mono for Android 3.0 beta throws the same exception both on a device and in an emulator.

      string [] dirs = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication ().GetDirectoryNames ("*");
      dirs = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication ().GetDirectoryNames ("dir1/*");
      dirs = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication ().GetDirectoryNames ("dir1/test/*");
Comment 1 Sebastien Pouliot 2012-03-27 08:54:25 UTC
Thanks for the test case.
Fixed in mono master: 1a843974f3951a4fffdd9120c8bcd649738d8189
mono-2-10: 90fd4771cb0b439489c6068712d7eef5ff0fdf8c
mobile-master: 9349f01e884647f94679fa709bc2c78471c6fe87
5.2-series: 7226f684fb090cb831a02bd474201634d121e761

It should be available in newer versions (e.g. 5.2.11) of MonoTouch.