I have a azure website which was running in browser. If I go to a particular page like my.azurewebsites.net/rest/api it's showing response on webpage. But if I used it in my PCL code like this
using (var httpClient = new HttpClient() { MaxResponseContentBufferSize = int.MaxValue })
{
HttpResponseMessage response = await httpClient.GetAsync(url);
response.EnsureSuccessStatusCode();
return await response.Content.ReadAsStringAsync();
}
Than its showing inner exception "The remote name could not be resolved". Addition information; "An error occurred while sending request"
3 days before it was working fine. Now I don't know what happened and how to fix.