Problem playing wav sounds in Silverlight

I was playing around with sounds and Silverlight but kept getting;
A Runtime Error has occurred.
Do you wish to Debug?
Line: 433
Error: Sys.InvalidOperationException: MediaError error #4001 in control ‘Xaml1’: AG_E_NETWORK_ERROR
Yes   No  
A quick look around the internet showed a number of people having trouble using the correct Uri or not using embedded resources correctly, I was sure I was coding it correctly. Then the obvious struck me, it doesn’t support WAVs. Sure enough once I change to WMA the code sprang to life.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s