Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Silverlight - Website combo solution giving media resource not found error
1 replies. Latest Post by TBink on June 6, 2008.
(0)
TBink
Member
254 points
188 Posts
06-06-2008 5:49 PM |
error message:
Microsoft JScript runtime error: Sys.InvalidOperationException: MediaError error #1001 in control 'Xaml1': AG_E_UNKNOWN_ERROR
and
Microsoft JScript runtime error: Sys.InvalidOperationException: Media "DobieJumpsForRock_3.662.jpg" in control "Xaml1" could not be found.
if I ignore and continue.
I added the the website to my original Silverlight application project's solution. That project has image files (and video files) . In that project I set the each of those files properties to:
Build Action: None
Copy to Output Directory: Copy Always
I got what I needed when my Silverlight project loads...
BUT, now when I run the Silverlight app from the website (from the "silverlight_app_testpage.aspx" ... I get the above errors...
This is probably simple but I've never run into it before
help anyone?
tom
06-06-2008 5:58 PM |
ah... I seem to have solved my own problem again... I had to copy those files into the website's [ClientBin] so that they were in the right relative path relationship to the XAP.
I think I'm up and running now.