HttpClient.GetStringAsync(url) throwing "The underlying connection was closed: An unexpected error occurred on a send." Windows 8.1 C#
<p>I'm creating a new Windows 8.1 App just for testing this error I am getting. 
The app has only one function:</p>

<pre><code>private async void TestMethod()
        {
            try
            {                       
                HttpClient httpClient = new HttpClient();
                HttpResponseMessage response = await httpClient.GetAsync("https:// url ");                    
            }
            catch (HttpRequestException e)
            {
                string s = e.InnerException.Message;
            }
        }
</code></pre>

<p>It is always entering the catch and throwing "The underlying connection was closed: An unexpected error occurred on a send." I found a lot of questions mentioning that but no solution worked for me since this is a Windows 8.1 Store App not an ASP.NET app. </p>

<p>The Uri I am using opens in the Browser and is functioning very well.</p>

<p>I even got to this article: <a href="https://support.microsoft.com/en-us/kb/915599" rel="noreferrer">https://support.microsoft.com/en-us/kb/915599</a> but no solution. Anyone has encoutered this problem before?</p>

<p><strong>Edit:</strong></p>

<p>I changed the method to use <code>async Task</code></p>

<pre>
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
  at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
  at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
  --- End of inner exception stack trace ---
  at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
  at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
  at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
  --- End of inner exception stack trace ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
  at HttpRequestTestApp.MainPage.d__0.MoveNext()
</pre>