title: Xamarin Forms Image Loading Error
body: <p>I would like to display an image in the "Xamarin forms" but I got below error:</p>
  
  <pre><code>Image Loading: Error getting stream for http://www.example.com/example.jpg *(example only)*: System.Net.Http.HttpRequestException: An error occurred while sending the request ---&gt; System.Net.WebException: Error: NameResolutionFailure
  </code></pre>
  
  <p>I had tested that the URL of the image,and it was able to display on the browser.</p>
  
  <p>Below is My code in code-behind:</p>
  
  <pre><code>var imageSource = new UriImageSource { Uri = new Uri("http://www.Example.com/example.jpg") } ;
              image.Source = imageSource;
  </code></pre>
  
  <p>And below is the code that I use in Xaml:</p>
  
  <pre><code>&lt;Image x:Name="image" /&gt;
  </code></pre>
  
  <p>After I google for the solution,I found that <strong>ModernHttpClient</strong> might be a solution but I have no idea how to implement it.</p>
  
  <p>Or isn't possible I could solve the error without using <strong>ModernHttpClient</strong>?</p>
  
  <p>Please advice!</p>