Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Sharing violation on path

$
0
0

Hi guys,
i have a problem with WriteAllText
it always says: Sharing violation on path /data/data/aeMVe.filme_schauen/files/ip_addrs.aMVe

but a few hours before, exactly this code worked like a charm, but now nothing is working, here is the whole code:

            string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            Setts [0] = path + "/ip_addrs.aMVe";
            Setts [1] = path + "/eco_pt.aMVe";
            if (File.Exists(Setts [0]) == false)
                File.Create(Setts[0]);
            if (File.Exists(Setts [1]) == false)
                File.Create(Setts[1]);
            try
            {           
                WebClient client = new WebClient ();
                n_infos[0] = DecodeFrom64(client.DownloadString ("http://**censored**/Android/aeMVe/Strings/IP-Adress.aMVe"));
                n_infos[1] = DecodeFrom64(client.DownloadString ("http://**censored**/Android/aeMVe/Strings/Eco_rq-Path.aMVe"));
                File.WriteAllText(Setts[0], n_infos[0]);
                File.WriteAllText(Setts[1], n_infos[1]);
            } catch {
                Toast.MakeText (this, "Sync failed, using old data.", ToastLength.Short).Show ();
                n_infos [0] = File.ReadAllText (Setts [0]);
                n_infos [1] = File.ReadAllText (Setts [1]);
            }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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