Forum Xamarin Xamarin.Forms

Android System.IO.IOException: Sharing violation only in release mode


In my xamarin app i'm using this implementation of the reading/writing dependency service to save some data to an xml file.

for some reason I'm hitting this sharing violation error (via hockeyapp).

android.runtime.JavaProxyThrowable: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.IO.IOException: Sharing violation on path /data/user/0/com.xamarin.s_elect/files/...

This only occurs on android with installation of an archived apk. In Android (debug), IOS and UWP I'm not able to reproduce this error.
I also found this bugzilla bugreport.

Has anyone had a simular issue?


  • AshleyGazichAshleyGazich USMember, Xamarin Team Xamurai

    Hi Tom, would you be able to provide a complete minimized test case demonstrating the issue? If access to the test case needs to be restricted, a private (Xamarin team only) report can be filed here.

Sign In or Register to comment.