Skip to main content
Home Forums Silverlight Programming Programming with .NET - General MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"
4 replies. Latest Post by nirav5884 on January 24, 2008.
(0)
nirav5884
Member
110 points
110 Posts
09-13-2007 6:32 AM |
When i put MediaElement tag in Canvas to play a media i got the error like "AG_E_UNKNOWN_ERROR".
How to deal with it?
My XAML file is given below.
MediaElement Source is also in the same folder where my project solution is.
<Canvas Background="#FFC9C5C5" Width="700" Height="800" Canvas.Left="135" Canvas.Top="16" x:Name="workspace" Canvas.ZIndex="2"> <MediaElement Canvas.Left="19" Canvas.Top="300" Volume="0.7" Source="2006MotorVideo.wmv" Width="100" Height="100"/> </Canvas>
jasonxz
Participant
1752 points
530 Posts
09-13-2007 9:42 AM |
My only advice for you on this is to comment out or remove pieces of the XAML until you no longer get the error. Then, you'll be able to figure out what piece is causing the problem and research it from there. That error, unfortunately, is too vague to really tell what's going on.
09-13-2007 9:49 AM |
Ok. No problem.
I got the Solution.
Now this error is solved.
John App...
38 points
39 Posts
01-23-2008 9:07 AM |
What was the solution you found nirav5884?
01-24-2008 1:00 AM |
John Applebee:What was the solution you found nirav5884?
I have put my media file in to the Silverlight Project Directory. After that i set the relative source path of the Media Element Tag.
Try it out. Most Probably it will solve your problem.
-Nirav