title: Getting WinRT concurrency exception in Windows 8 app in VS Express but not Professional
body: <p>I have been working on a version of my XNA tutorials using DirectX 11 and XAML and have been having a pretty good go at things in general.</p>
  
  <p>Today, the trial version of VS 2012 Professional expired so I threw an install of the Express Edition on to make sure everything I had done up to this point would build/run ok. Turns out it doesn't though.</p>
  
  <p>In the section of my code where I am loading in vertex/pixel shaders I am using concurrency Tasks. Using Visual Studio 2012 Professional, this was all working great, but when I try to run the same project using Express Edition, I get the following exception:</p>
  
  <p>First-chance exception at 0x76BA4B32 (KernelBase.dll) in Demo.exe: 0x40080201: WinRT originate error (parameters: 0x800700A1, 0x00000075, 0x0299DA88).
  Here is the offending code block:</p>
  
  <pre><code>auto loadVSTask = DX::ReadDataAsync(m_vertex).then([=](const Platform::Array&lt;byte&gt;^ bytecode) {
      DX::ThrowIfFailed(
          device-&gt;CreateVertexShader(
              bytecode-&gt;Data,
              bytecode-&gt;Length,
              nullptr,
              &amp;m_vertexShader
          )
      );
  
      DX::ThrowIfFailed(
          device-&gt;CreateInputLayout(m_layout, m_layoutElements, bytecode-&gt;Data, bytecode-&gt;Length, &amp;m_inputLayout)
      );
  });
  
  // Function that reads from a binary file asynchronously.
  inline Concurrency::task&lt;Platform::Array&lt;byte&gt;^&gt; ReadDataAsync(Platform::String^ filename)
  {
      using namespace Windows::Storage;
      using namespace Concurrency;
  
      auto folder = Windows::ApplicationModel::Package::Current-&gt;InstalledLocation;
  
      return create_task(folder-&gt;GetFileAsync(filename)).then([] (StorageFile^ file) 
      {
          return FileIO::ReadBufferAsync(file);
      }).then([] (Streams::IBuffer^ fileBuffer) -&gt; Platform::Array&lt;byte&gt;^ 
      {
          auto fileData = ref new Platform::Array&lt;byte&gt;(fileBuffer-&gt;Length);
          Streams::DataReader::FromBuffer(fileBuffer)-&gt;ReadBytes(fileData);
          return fileData;
      });
  }
  </code></pre>
  
  <p>Using a non Async verison of the file loading works fine and everything runs perfectly. To reiterate this only happens in Visual Studio 2012 Express and does not occur in the Professional Edition.</p>
  
  <p>Any ideas?</p>