title: Exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.ni.dll
body: <p>I am trying to play a wav file using using Microsoft.Xna.Framework but I cannot resolve this error.</p>
  
  <pre><code>A first chance exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.ni.dll
  An exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.ni.dll but was not handled in user code
  </code></pre>
  
  <p>Below is my code: (The error happens on line: <code>TitleContainer.OpenStream(dingSoundFile)</code>)</p>
  
  <pre><code>        SoundEffectInstance seiCircus;
          string dingSoundFile = "/Html/sounds/tap.wav";
          using (var stream = TitleContainer.OpenStream(dingSoundFile))
          {
              var effect = SoundEffect.FromStream(stream);
              //create the instance
              seiCircus = effect.CreateInstance();
  
              FrameworkDispatcher.Update();
              //play sound via the instance
              seiCircus.Play();
          }
  </code></pre>