title: Write to file meta data Windows Store apps
body: <p>I have following code:</p>
  
  <pre><code>var props = App.CurrentFile.Properties.GetDocumentPropertiesAsync();
          props.GetResults().Comment = "Comments goes here";
          await props.GetResults().SavePropertiesAsync();
  </code></pre>
  
  <p>The CurrentFile is of type StorageFile. When I try to save updated Comment value using SavePropertiesAsync(), it fails with following COM exception.</p>
  
  <pre><code>Error HRESULT E_FAIL has been returned from a call to a COM component.
  </code></pre>
  
  <p>I am following very basic example at this blog:</p>
  
  <p><a href="http://lunarfrog.com/blog/2011/10/17/winrt-wps-part1-storing-retrieving-metadata/" rel="nofollow">http://lunarfrog.com/blog/2011/10/17/winrt-wps-part1-storing-retrieving-metadata/</a></p>
  
  <p>Any idea?</p>
  
  <p>Thanks,
  Jay</p>