System.Net.WebException: The remote name could not be resolved:
I am testing an endpoint that I am experiencing some issues with. I am simply using HttpClient in a loop that performs a request each hour. var httpClient = new HttpClient(); var message = httpClient.GetAsync(url).Result; Console.WriteLine(message.StatusCode); Once in a while I am getting this exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'xxx' The experience is that right after the exception, the URL can be accessed. In a browser you simply refresh the page and all is good. I