title: Using Uri for .wav files
body: <p>I need to play some .wav files in a <code>wpf</code> project. No prior experience with <code>Uri</code> so I am stuck. I have placed the two <code>.wav</code> in my Rescources file and I am declaring:</p>
  
  <pre><code>Uri uri2 = new Uri(@"pack://application:,,,/Resources/WindowsExclamation.wav", UriKind.Absolute);
  
  Uri uri1 = new Uri(@"pack://application:,,,/Resources/WindowsCriticalStop.wav", UriKind.Absolute);
              var player = new MediaPlayer();
  </code></pre>
  
  <p>I have put a break point on the following point:</p>
  
  <pre><code>player.Open(uri2);
  player.Play();
  </code></pre>
  
  <p>When running the code I get this exception for uri2 Authority:</p>
  
  <pre><code>{"The generic authority 'application:,,,' is not a valid dns name."}
  </code></pre>