HttpClient GetAsync Fails
<p>I have been experimenting with building a Windows ConsoleApp to be run as a WebService to sync some data back and forth I have built a project for syncing and when I ran it through my wpf project it seemed to work but not it's not.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Net.Http.Headers;
using QAQC_DataCommon.Models;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Gettasks();
        }
    public static async void Gettasks()
    {
        using (var client = new HttpClient())
        {
            client.BaseAddress = new Uri("http://localhost/QAQC_SyncWebService/");
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            try
            {
                var response = await client.GetAsync("Tasks/?username=XXXXXX&amp;LastUpdated=1/1/15");

                if (response.IsSuccessStatusCode)
                {
                    List&lt;QaqcRow&gt; ls = await response.Content.ReadAsAsync&lt;List&lt;QaqcRow&gt;&gt;();

                    foreach (QaqcRow qaqcRow in ls)
                    {
                        Debug.WriteLine(qaqcRow.GetValue("BusinessUnit"));
                    }
                }
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
</code></pre>

<p>}</p>

<p>It gets up to Var response = Await line when it just exits.  No exceptions or any warnings, if I am debugging it just stops.</p>

<p>my output is:</p>

<pre><code>The thread 0x1414 has exited with code 259 (0x103).
The thread 0x16e4 has exited with code 259 (0x103).
The program '[9656] TestApp.vshost.exe' has exited with code 0 (0x0).
</code></pre>

<p>My controller from my webservice is as follows:</p>

<pre><code>public IEnumerable&lt;QaqcRow&gt; Index(string username, string lastUpdated)
        {
            return GetFilteredList(username, lastUpdated).OrderBy(x =&gt; x.GetValue("FormId"));
        }
</code></pre>

<p>I can manually go to the webservice via the link and i get data, but when i use httpclient it just dies.</p>