Playing Random mp3 file unkown error
<p>This works when I just call the function and play a file, however if I want to choose a random mp3 from a folder to play it stops saying "Index was outside bounds of the array".</p>

<p>Can anyone spot whats wrong?   </p>

<pre><code>public void playrandomsound()
    {
        if (mp3 != null)
        {
            mp3.Dispose();
        }

        var files = new DirectoryInfo(Application.StartupPath).GetFiles(".mp3");
        int index = new Random().Next(0, files.Length);


        string filename = files[index].Name.ToString();      &lt;-- App stops here

        string tune = string.Concat(Application.StartupPath, "//", fiilename);
        mp3 = new Audio(tune);
        mp3.Play();



    }
</code></pre>

<p>If I remove the "tostring" method on the error line, it still gives the same error.</p>
