title: Call to await GetFileAsync() never returns and app hangs in WinRT app
body: <p>I'm attempting to load and read a settings file on application launch, and about 90% of the time, the <code>await GetFileAsync("filename.xml");</code> never returns, thus, hanging the application.</p>
  
  <p>About a quarter of the time, if I step through the code, it'll actually return and read the file.</p>
  
  <p>Here's a very simplified version of the code:</p>
  
  <p>App.xaml.cs:</p>
  
  <pre><code>protected override void OnLaunched(LaunchActivatedEventArgs args)
  {
      FileLoader.Load().Wait();
  
      // File-load dependent stuff
  }
  </code></pre>
  
  <p>FileLoader.cs:</p>
  
  <pre><code>public async static Task Load()
  {
      StorageFolder folder = ApplicationData.Current.LocalFolder;
      StorageFile file;
      bool fileExists = true;
  
      try
      {
          // The following line (often) never returns
          file = await folder.GetFileAsync("filename.xml");
      {
      catch
      {
          fileExists = false;
      }
  
      // Do stuff with loaded file
  }
  </code></pre>
  
  <p>If I watch the Output window in Visual Studio, after awhile of waiting I get <code>"The thread '&lt;No Name&gt;' (0x30c) has exited with code 0 (0x0)."</code></p>
  
  <p>Does anyone have any idea of what's happening here?</p>