Skip to main content

Microsoft Silverlight

Answered Question MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"RSS Feed

(0)

nirav5884
nirav5884

Member

Member

110 points

110 Posts

MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"

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
jasonxz

Participant

Participant

1752 points

530 Posts

Re: MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"

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.

nirav5884
nirav5884

Member

Member

110 points

110 Posts

Answered Question

Re: MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"

Ok. No problem.

I got the Solution.

Now this error is solved. 

John Applebee
John App...

Member

Member

38 points

39 Posts

Re: MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"

What was the solution you found nirav5884?

nirav5884
nirav5884

Member

Member

110 points

110 Posts

Re: MediaElement in Canvas. Error - "AG_E_UNKNOWN_ERROR"

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 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities