Skip to main content

Microsoft Silverlight

Answered Question Downloader object error under SLSRSS Feed

(0)

odina
odina

Member

Member

16 points

6 Posts

Downloader object error under SLS

Hello,

Environment : SLS with 1.1.20816.0 client

 

My application package contains font files which I am trying to load at run time with Downloader object.  After uploading zip to SLS and launching application test page I am getting the following error:

 

Silverlight error message

ErrorCode: 4001

ErrorType: DownloadError

Message:  AG_E_NETWORK_ERROR

 

Deploying the same package to a local web server works fine.

 

Why would that be? Any ideas?

 

Thank you,

odin

 

Thank you,
odin

mAjKoL
mAjKoL

Member

Member

318 points

49 Posts

Re: Downloader object error under SLS

Maybe you are trying to download files that your webserver is not configured to handle. Most likely it fails on .xaml files because you do not have mime-type set up for such files. You can try renaming them to .xml and changing references in your app. You can use this workaround if you cannot change webserver config (hosting scenario) or you can change your webserver config

You will find a detailed instruction how to config IIS here: http://silverlight.net/forums/t/479.aspx

Hope this helps,
Michal Stanislawek
**********************
MVP [ASP.NET](2006,2007)
View Michal Stanislawek's profile on LinkedIn

If my reply answers your question please use "Mark as answer" option.

odina
odina

Member

Member

16 points

6 Posts

Re: Downloader object error under SLS

Michal,

thank you for suggestion. However, my issue relates to Microsoft Silverlight Streaming service and not to a standalone web server configuration.

Thank you,
   odin

Thank you,
odin

majkol
majkol

Member

Member

318 points

49 Posts

Re: Re: Downloader object error under SLS

make sure the downloader object is trying to download the file from the correct path on the server.

Hope this helps,
Michal Stanislawek
**********************
MVP [ASP.NET](2006,2007)
View Michal Stanislawek's profile on LinkedIn

If my reply answers your question please use "Mark as answer" option.

Frogs69
Frogs69

Participant

Participant

798 points

219 Posts

Microsoft

Re: Re: Downloader object error under SLS

Note that while TTF was supported from the get-go. ODTTF will only be supported as of later tonight (Jan. 8th, 11:00 pm PST). Not sure this is your issue, but since you mention font files in your ZIP archive, it may be...

Cheers.

odina
odina

Member

Member

16 points

6 Posts

Answered Question

Re: Downloader object error under SLS

Hello,

 

The problem had been solved. Apparently to use downloader object with SLS the content being retrieved must reside in a separate zip file inside application zip. My mistake was I put font files directly inside application zip.

 

Incorrect:

 

App.zip

Font1.ttf

Font2.ttf

Manifest.xml

App.xaml

 

Correct :

 

App.zip

Fonts.zip

Font1.ttf

Font2.ttf

Manifest.xml

App.xaml

Thank you,
odin
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities