Bug 36468 - Calling AccountStore.Create(AppContext) in Xamarin.Auth throws Java.IO.FileNotFoundException on first run
Summary: Calling AccountStore.Create(AppContext) in Xamarin.Auth throws Java.IO.FileNo...
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Miljenko Cvjetko Mel
Depends on:
Reported: 2015-12-02 15:36 UTC by FieldstrikeMobile
Modified: 2016-04-14 07:50 UTC (History)
1 user (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 FieldstrikeMobile 2015-12-02 15:36:28 UTC

            var store = AccountStore.Create(AppContext);
            store.Save(account, "MyApp");

always throws an error on AccountStore.Create() line if this is the first run for the application. The error is:

Java.IO.FileNotFoundException: /data/user/0/eu.MyApp.android.MyApp/files/Xamarin.Social.Accounts: open failed: ENOENT (No such file or directory)

The error does not crash my application. but still annoying and should be dealt with correctly
Comment 1 FieldstrikeMobile 2015-12-02 16:52:48 UTC
To replicate this. Please turn on Exception settings for all thrown 'Common language runtime' exceptions
Comment 2 Miljenko Cvjetko Mel 2016-04-14 07:50:16 UTC
Resolved in portable-bait-and-switch branch.