Skip to main content

Microsoft Silverlight

Answered Question Silverlight - Website combo solution giving media resource not found errorRSS Feed

(0)

TBink
TBink

Member

Member

254 points

188 Posts

Silverlight - Website combo solution giving media resource not found error

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

 

TBink
TBink

Member

Member

254 points

188 Posts

Answered Question

Re: Silverlight - Website combo solution giving media resource not found error

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities