title: The given System.Uri cannot be converted into a Windows.Foundation.Uri
body: <p>I'm trying to programmatically load a BitmapImage in a XAML Metro app. Here's my code:</p>
  
  <pre><code>var uri = new Uri("/Images/800x600/BackgroundTile.bmp", UriKind.RelativeOrAbsolute);
  var imageSource = new BitmapImage(uri);
  </code></pre>
  
  <p>The second line crashes with a System.ArgumentException:</p>
  
  <blockquote>
    <p>The given System.Uri cannot be converted into a Windows.Foundation.Uri. Please see <a href="http://go.microsoft.com/fwlink/?LinkID=215849">http://go.microsoft.com/fwlink/?LinkID=215849</a> for details.</p>
  </blockquote>
  
  <p>The link just goes to the MSDN home page, so it's no use.</p>
  
  <p>I've also tried removing the leading <code>/</code>, in case WinRT has different expectations about relative URIs, but I still get the same exception.</p>
  
  <p>Why am I getting this exception for what seems to be a perfectly valid URI?</p>