Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Downloader Error 4001? RSS

7 replies

Last post Dec 20, 2007 01:43 AM by tomtaylormsft

(0)
  • LostInTheCosmos

    LostInTheCosmos

    Member

    64 Points

    38 Posts

    Downloader Error 4001?

    May 02, 2007 07:11 PM | LINK

    Hi there,

    I've been trying to use the downloader object, but it seems to keep throwing an Error Code 4001: AG_E_NETWORK_ERROR.  But I am not finding any descriptions on what that means.

    Could someone please help?

    Thanks!

    Downloader

  • LostInTheCosmos

    LostInTheCosmos

    Member

    64 Points

    38 Posts

    Re: Downloader Error 4001?

    May 03, 2007 03:17 PM | LINK

    I think I figured out the error.  I was trying to download an object from an address where the domain was different than the application.  So I'm guessing that the downloader object has the same priveleges as a regular AJAX call - domain only?

    Downloader

  • Kevgor

    Kevgor

    Member

    224 Points

    77 Posts

    Re: Downloader Error 4001?

    May 03, 2007 04:46 PM | LINK

    U-Bet!

     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

  • LostInTheCosmos

    LostInTheCosmos

    Member

    64 Points

    38 Posts

    Re: Downloader Error 4001?

    May 03, 2007 05:35 PM | LINK

    Thanks for the clarification! [:)] 

    How about sub-domains?

  • tomtaylormsft

    tomtaylormsft

    Member

    579 Points

    165 Posts

    Microsoft

    Re: Downloader Error 4001?

    May 04, 2007 12:53 AM | LINK

    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.

     - Tom

    this post is provided "as-is"

    Downloader

  • gerard1234

    gerard1234

    Member

    112 Points

    61 Posts

    Re: Downloader Error 4001?

    May 10, 2007 10:13 AM | LINK

    Hello.
    I've got the same problem and don't know how to solve it.
    I do somewhere: this.downloader.open('GET', "XAML/test.xaml", true); and the
    this.downloader.addEventListener("completed", Sys.Silverlight.createDelegate(this, this.downloadCompleted)); won't start, I get the error.
    So I gues that the link to "XAML/test.xaml" isn't correct.
    Does anyone know how I can reach this file on my webserver? (use silverlight beta 1.0)

    ps : and my xaml file has : x:Name="item$0" ,   $1: ,  $3:  signs., maybe that matters.

    Hope somebody can help me.
    Thanx    

    I know what I missed. It most be:
    usr/Scroll/xaml/test.xaml
    instead off: XAML/test.xaml
    When I want to see it from my pc I just have to do the second option.
    When I put it on my webserver, it mst be the first option.
    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/.
    Bye

  • discorax

    discorax

    Member

    40 Points

    14 Posts

    Re: Downloader Error 4001?

    Dec 19, 2007 03:23 PM | LINK

    I'm using this code:

         <Rectangle.Fill>
         <ImageBrush ImageSource="_images/logo.gif" Stretch="Uniform"/>
        </Rectangle.Fill>

    I'm getting that same error, but it's in the same domain as the site.  Any ideas now? 

    THAT'S WEIRD...or is it? I changed the file to a PNG and all worked perfectly.  Is there something wrong with loading a GIF?  Guess I'll need to dig further down and see what other limitations there are. 

  • tomtaylormsft

    tomtaylormsft

    Member

    579 Points

    165 Posts

    Microsoft

    Re: Re: Downloader Error 4001?

    Dec 20, 2007 01:43 AM | LINK

    That's correct behavior - Silverlight only supports jpeg and PNG files.