title: Method Error 'Cannot await 'System.Threading.Tasks.Task' from await and async properties
body: <p>I have installed the NuGet Package Async for .NET Framework 4, Silverlight 4 and 5, and Windows Phone 7.5 and 8.</p>
  
  <pre><code>Version 1.0.16
  </code></pre>
  
  <p>I am using Microsoft .NET 4.0 and I can not upgrade due to Web Hosting Package Restrictions. (Sadly!)</p>
  
  <p>My test Code: (I am doing a Linq to SQL Query in place of Thread.Sleep)</p>
  
  <pre><code>public class Search
  {
  public async Task&lt;List&lt;Result&gt;&gt; GetResults(string SearchString)
  {
  await System.Threading.Tasks.Task.Factory.StartNew(() =&gt; Thread.Sleep(1000));
  }
  }
  </code></pre>
  
  <p>My Error:</p>
  
  <pre><code>Cannot await 'System.Threading.Tasks.Task'
  </code></pre>
  
  <p><a href="http://blogs.msdn.com/b/bclteam/p/asynctargetingpackkb.aspx" rel="noreferrer">http://blogs.msdn.com/b/bclteam/p/asynctargetingpackkb.aspx</a> talks about the error but it is not really the answer as I am not using VB and I am already doing what the solution describes.</p>
  
  <p><strong>[EDIT]</strong>
  I am getting a warning:</p>
  
  <pre><code>Warning 4   The primary reference "Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Runtime, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
  </code></pre>
  
  <p>Thanks for your help.</p>