I'm currently working on a Windows Phone 8.1 app, my first one actually. I would like to send through my emulator windows phone 8.1, a http request to a remote server. So I've used that code:
try
{
mailToCheck.MailProfil = TxtBox_mail.Text.ToString();
string js = JsonConvert.SerializeObject(mailToCheck);
HttpClient httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Add("Accept", "Application/JSON");
HttpRequestMessage data = new HttpRequestMessage(HttpMethod.Post, new Uri("url");
data.Content = new HttpStringContent((js));
HttpResponseMessage response = await httpClient.SendRequestAsync(data).AsTask();
string statusCode = response.StatusCode.ToString();
}catch (Exception ex)
{
}
and I'm always getting that error : 0x80072efd. I've heard of it means that there is no internet connexion but I'm able to navigate on website on the emulator web browser. The Networking capability is checked. Does somebody already faced that issue ? Maybe the Hyper-V blocking ? Thanks in advance