Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

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

$
0
0

Hello,

In my xamarin app i'm using this implementation of the reading/writing dependency service to save some data to an xml file.
https://github.com/xamarin/xamarin-forms-samples/blob/master/WorkingWithFiles/PCL/Android/SaveAndLoad_Android.cs

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.
https://bugzilla.xamarin.com/show_bug.cgi?id=57469

Has anyone had a simular issue?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>