title: How do I play a sound in an asp.net web page?
body: <p>I want to play some sounds in my web page once I click a button. This is my code but it shows an error.</p>
  
  <pre><code>SoundPlayer x = new SoundPlayer();
  x.SoundLocation = "WindowsBalloon.wav";
  //x.Play();
  x.PlaySync();
  </code></pre>
  
  <p>error: </p>
  
  <blockquote>
    <p>Please be sure a sound file exists at the specified location.</p>
  </blockquote>
  
  <p>but the file exists in my project and I'm sure that the address is correct.</p>