AG_E_Network_error #4001

4 posts, 0 answers
  1. venu
    venu avatar
    6 posts
    Member since:
    Sep 2008

    Posted 06 May 2009 Link to this post

    hi,
       i am getting an error when ever i drag the time slider to its end point.

    error is as follows.

    a runtime error as occured
    do u wish to debug?
    line:453
    error.sys.invalidoperationexception:Mediaerror error #4001 in control
    'xaml1':AG_E_NETWORK_ERROR    

    the code for this project is in previous post. my email id is avenugopalsjcit@gmail.com
    please suggest me.
    regards
    venugopal
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 06 May 2009 Link to this post

    Hi Venu,

    As far as I remember, you were doing some things on the MediaEnded event. Could you please follow my suggestion in the other thread and then see whether this helps here as well.

    Normally this error comes up when the media uri is not a valid one, it may be something that is played after the current item finishes.

    Greetings,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Chris Rathermel
    Chris Rathermel avatar
    28 posts
    Member since:
    Dec 2006

    Posted 14 May 2009 Link to this post

    I got this error because I figured out the hard way that the source has to be a url.  I had a file path set and it doesn't work:

        Private Sub Page_Loaded(ByVal sender As ObjectByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded  
            Dim radMediaPlayer1 As New RadMediaPlayer()  
            radMediaPlayer1.Width = 600  
            radMediaPlayer1.Height = 400  
            Dim mediaSource As String = "file://virchowkrause.net/webcasts/BTNameChange.wmv" 
            Dim imageSource As String = "http://vkforms.virchowkrause.net/ApplicationImages/timchristen.jpg" 
     
            Dim mediaItem As New RadMediaItem()  
            mediaItem.Source = New Uri(mediaSource, UriKind.RelativeOrAbsolute)  
            mediaItem.ImageSource = New BitmapImage(New Uri(imageSource, UriKind.RelativeOrAbsolute))  
            mediaItem.Title = "CEO Message - May 2009" 
            mediaItem.Description = "Baker Tilly Starts Now!" 
     
            radMediaPlayer1.Items.Add(mediaItem)  
            LayoutRoot.Children.Add(radMediaPlayer1)  
        End Sub 

    This file path works fine in windows media player but not in telerik's media player.  Not good...
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 May 2009 Link to this post

    Hello Chris Rathermel,

    This is a limitation in the framework. You can read more info on the topic here:
    (URL Access Restrictions in Silverlight 2) http://msdn.microsoft.com/en-us/library/cc189008%28VS.95%29.aspx

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top