title: HttpClient - Only HTTP/1.0 and HTTP/1.1 version requests are currently supported. Parameter name: value
body: <p>Recently I enabled HTTP/2 support on Azure for our Web API. Followed this guide:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/http2-on-iis" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/http2-on-iis</a></p>
  
  <p>However when I try to do a HTTP/2 enabled request from our HttpClient I am getting following exception:</p>
  
  <blockquote>
    <p>Only HTTP/1.0 and HTTP/1.1 version requests are currently supported.
    Parameter name: value</p>
  </blockquote>
  
  <p>I have the latest System.Net.Http nuget package installed and setting the version on the request like this: </p>
  
  <pre><code>yourHttpRequestMessage.Version = new Version(2, 0);
  </code></pre>
  
  <p>I have no idea what is wrong here given that I followed the guide and used the latest System.Net.Http nuget package.</p>
  
  <p>Note that the HttpClient is living in a .net standard library and is being used in a Xamarin application.</p>