I'm getting an AG_E_NETWORK_ERROR when I try to set my media element to a source that doesn't sit on the same server.
the target url is something like this mms://202.134.45.78/FAKEURL and it works when i hit it with windows media player. The only thing which I can tell is wrong is that there might be a cross domain issue, but I thought media didn't fall under that filter
when the source is something like
http://123.45.34.11/someintranetsite/file.aspx since it's going from http to http and from the intranet to the internet.
The URL pointed to is a server side playlist if that matters.
The source is a Windows Server 2003 server running Windows Media Services.
Since I'm going from a more secure location (My Computer or Intranet) to a less secure location (Internet) and I'm not using a different Scheme (already tried both HTTP and MMS) I'm just wondering if it's related to a cross domain policy violation.
ok i thnk i know wat the problem is. i don't think that the server has http enabled. i am now inquiring with the content provider. windows media server doesn't have http on by default does it? if it doesn't then i guess the other person gaving problems should
check his server as well.
MarauderzMY
Member
639 Points
283 Posts
Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 24, 2008 03:49 AM | LINK
I'm getting an AG_E_NETWORK_ERROR when I try to set my media element to a source that doesn't sit on the same server.
the target url is something like this mms://202.134.45.78/FAKEURL and it works when i hit it with windows media player. The only thing which I can tell is wrong is that there might be a cross domain issue, but I thought media didn't fall under that filter when the source is something like http://123.45.34.11/someintranetsite/file.aspx since it's going from http to http and from the intranet to the internet.
The URL pointed to is a server side playlist if that matters.
So anyone has any ideas?
MarauderzMY
Member
639 Points
283 Posts
Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 03:18 AM | LINK
Gonna bump this once.
So can anyone give me an idea as to why I'm getting a Network Error?
SteveWong
Contributor
6719 Points
1346 Posts
Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 05:53 AM | LINK
It doesnt seems to any problem with different Server coz I wrote these line which works well
MediaElement m = new MediaElement();
m.Source = new Uri("http://download.microsoft.com/download/b/1/a/b1adf197-4424-43be-8931-4458c37e1db7/WinVideo-DataBindingToBizObjects.wmv");
LayoutRoot.Children.Add(m);
Maybe you should tell more about what you meant by the intranet site
SteveWong (HongKong)
Please mark post as answer if they help you
davesmits
Member
631 Points
210 Posts
Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 09:02 AM | LINK
I got problems when setting an live stream as source; in silverlight 1 and 2. So what do you try MarauderzMY?
rarely it plays, somstimes get the error you call but most of the time i hear sound for max one second and after that is silence
http://www.familie-smits.com
MarauderzMY
Member
639 Points
283 Posts
Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 09:33 AM | LINK
OK.. from Intranet site I mean from my developement machine, therefore the page hosting the Silverlight Appliciton is something like
http://localhost:45123/SLTest/default.aspx
Hence I would assume that it will consider the source site to be in the Intranet Zone or maybe even My Computer?
And I'm setting my source the same way as you are doing
mainMedia.source=new Uri("mms://123.34.56.78/Stream")
The source is a Windows Server 2003 server running Windows Media Services.
Since I'm going from a more secure location (My Computer or Intranet) to a less secure location (Internet) and I'm not using a different Scheme (already tried both HTTP and MMS) I'm just wondering if it's related to a cross domain policy violation.
davesmits
Member
631 Points
210 Posts
Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 09:39 AM | LINK
it is not cross domain; but i believe silverlight have problems with live streams
http://www.familie-smits.com
SteveWong
Contributor
6719 Points
1346 Posts
Re: Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 25, 2008 01:26 PM | LINK
I dont know if it helps or not. Please set a port for the mms.
mss://123.34.56.78:8080/Stream
SteveWong (HongKong)
Please mark post as answer if they help you
MarauderzMY
Member
639 Points
283 Posts
Re: Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jun 27, 2008 11:59 AM | LINK
MarauderzMY
Member
639 Points
283 Posts
Re: Re: Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Jul 26, 2008 08:41 AM | LINK
Yes, by default WMS doesn't have the HTTP transport enabled.
fgiaccari
Member
2 Points
1 Post
Re: Re: Re: Re: Getting AG_E_NETWORK_ERROR Setting Media Element Source. Cross Domain Issue?
Aug 25, 2008 05:53 PM | LINK
Hi Guys, I found a problem with silverlight 2.0 beta 2 and BLend 2 June release and VS 2008 SP1.
When the VS or Blend software search to draw the xaml page in design view the system crash. Anyone have my same problem? Thanks for all
Fulvio
===========================
Fulvio Giaccari [MCPD/MCSD/MCT]
.NET Project Manager www.sbsoft.it
http://www.freeaspx.it
===========================