title: Waiting for task throws
body: <p>I'm just starting out with WinRT's concurrency model. I have a task that I need to wait on, but calling wait() throws an exception that I can't catch. </p>
  
  <p>Simplest possible code:</p>
  
  <pre><code>concurrency::task&lt;StorageFile^&gt; getFileTask = concurrency::create_task(Windows::Storage::ApplicationData::Current-&gt;LocalFolder-&gt;GetFileAsync(fileString));
  getFileTask.wait();
  </code></pre>
  
  <p>The exception it throws is:</p>
  
  <pre><code>Microsoft C++ exception: Concurrency::invalid_operation at memory location 0x0402C45C
  </code></pre>
  
  <p>How do I set this up so that it works?</p>