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

Newtonsoft.Json error

$
0
0

hi guys, i'm trying my app in my phone but if i try the app with Wi-Fi the app work well, if i try the app with my mobile internet connection it don't work.
Here is my code:
var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(20) };
HttpResponseMessage response = await client.GetAsync("http://unthreaded-storm.000webhostapp.com/Connession.php?Query=Select Username, aes_decrypt(Password,'LpOkzQA8IapOc4GJk2CHjM9wjIM') as Password From User");
var result = await response.Content.ReadAsStringAsync();
var dataSet = JsonConvert.DeserializeObject(result);
int u = 0;
int p = 0;
foreach (var datatable in dataSet.posts)
{
//My code
}

Thanks to all for the help


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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