Skip to main content
Home Forums General Silverlight Hosting and Streaming Downloader object error under SLS
5 replies. Latest Post by odina on January 11, 2008.
(0)
odina
Member
16 points
6 Posts
01-04-2008 9:04 PM |
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
mAjKoL
318 points
49 Posts
01-05-2008 8:04 AM |
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
01-05-2008 12:50 PM |
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
majkol
01-05-2008 3:10 PM |
make sure the downloader object is trying to download the file from the correct path on the server.
Frogs69
Participant
798 points
219 Posts
01-08-2008 4:02 PM |
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.
01-11-2008 2:54 PM |
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 :
Fonts.zip