Programming with JavaScripthttp://forums.silverlight.net//16.aspx/1?Programming+with+JavaScriptDiscussions about programming Silverlight with JavaScriptMon, 01 Jan 0001 00:00:00 -050016829http://forums.silverlight.net//p/547/829.aspx/1?Downloader+Error+4001+Downloader Error 4001? <p>Hi there,</p> <p>I've been trying to use the downloader object, but it seems to keep throwing an Error Code 4001: AG_E_NETWORK_ERROR.&nbsp; But I am not finding any descriptions on what that means.</p> <p>Could someone please help?</p> <p>Thanks!</p> 2007-05-02T19:11:09-04:001033http://forums.silverlight.net//p/547/1033.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? <p>I think I figured out the error.&nbsp; I was trying to download an object from an address where the domain was different than the application.&nbsp; So I'm guessing that the downloader object has the same priveleges as a regular AJAX call - domain only?</p> 2007-05-03T15:17:25-04:001043http://forums.silverlight.net//p/547/1043.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? <p>U-Bet!</p> <p>&nbsp;Domain only for now. Microsoft has publicly stated that they are investigating cross-domain capabilities for a later beta or version. Whether it will make it into 1.1 is anybodies guess, but it is not in 1.0</p> 2007-05-03T16:46:07-04:001058http://forums.silverlight.net//p/547/1058.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? <p>Thanks for the clarification! [:)]&nbsp;</p> <p>How about sub-domains?</p> 2007-05-03T17:35:56-04:001149http://forums.silverlight.net//p/547/1149.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? <p>not currently - we consider fred.microsoft.com to be a different domain than microsoft.com. We have explored enabling this in the future but want to make sure that we do this in a secure manner. </p> <p>&nbsp;- Tom<br> <br> <em>this post is provided &quot;as-is&quot;</em></p> 2007-05-04T00:53:04-04:002016http://forums.silverlight.net//p/547/2016.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? <p>Hello.<br> I've got the same problem and don't know how to solve it.<br> I do somewhere: this.downloader.open('GET', &quot;XAML/test.xaml&quot;, true); and the <br> this.downloader.addEventListener(&quot;completed&quot;, Sys.Silverlight.createDelegate(this, this.downloadCompleted)); won't start, I get the error.<br> So I gues that the link to &quot;XAML/test.xaml&quot; isn't correct.<br> Does anyone know how I can reach this file on my&nbsp;webserver? (use silverlight beta 1.0)</p> <p>ps : and my xaml file has : x:Name=&quot;item&#36;0&quot;&nbsp;,&nbsp;&nbsp; &#36;1: ,&nbsp; &#36;3:&nbsp; signs., maybe that matters.</p> <p>Hope somebody can help me.<br> Thanx&nbsp;&nbsp;&nbsp;&nbsp; <br> <br> I know what I missed. It most be: <br> usr/Scroll/xaml/test.xaml <br> instead off: XAML/test.xaml<br> When I want to see it from my pc I just have to do the second option.<br> When I put it on my webserver, it mst be the first option. <br> So when I test I most switch all the time. Is there not an easier why to solve this? something like window.location.pathname (but then without the xaml/test.xaml )just usr/Scroll/.<br> Bye</p> 2007-05-10T10:13:06-04:0024137http://forums.silverlight.net//p/547/24137.aspx/1?Re+Downloader+Error+4001+Re: Downloader Error 4001? I'm using this code: <p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rectangle.Fill&gt;<br> &nbsp;&nbsp; &nbsp; &lt;ImageBrush ImageSource=&quot;_images/logo.gif&quot; Stretch=&quot;Uniform&quot;/&gt;<br> &nbsp;&nbsp; &nbsp;&lt;/Rectangle.Fill&gt;<br> <br> I'm getting that same error, but it's in the same domain as the site.&nbsp; Any ideas now?&nbsp;</p> <p><b>THAT'S WEIRD...or is it? I changed the file to a PNG and all worked perfectly.&nbsp; Is there something wrong with loading a GIF?&nbsp; Guess I'll need to dig further down and see what other limitations there are.&nbsp;</b></p> 2007-12-19T15:23:48-05:0024202http://forums.silverlight.net//p/547/24202.aspx/1?Re+Re+Downloader+Error+4001+Re: Re: Downloader Error 4001? <p>That's correct behavior - Silverlight only supports jpeg and PNG files.</p> 2007-12-20T01:43:29-05:00