Page view counter

Download Error Code 4001?

If you are testing your code, or going to other pages with Silverlight running and seeing this error:

BugErrorCode

 

It is not your fault!

This is the result of a recently discovered bug that we know how to fix. We are working hard to get that fix out so that you won't run into this problem.

For now, the work around is this: if you try the page again, you'll usually find that it will load just fine (or the second or third time <smile>.)

I will post as soon as we have more information, and I apologize for the inconvenience this may be causing.

Published 31 January 2008 05:58 PM by jesseliberty

Comments

# zhaiyj said on 31 January, 2008 07:52 PM

Well, I hope that will be fixed soon.

This bring another problem to mind. One day After I created a silverlight downloader and wanted it to download a picture from other website ,Silverlight Downloader couldn't load files from other websites, showing "AG_E_RUNTIME_METHOD:send" instead.

Then I used the "Downloadprogresschange" event, "DownloadFailed" event and "Downloadprogress" property of the Image element itself. But when the picture began downloading, the Downloadprogress equalled to 1,not 0. It means easy to make mistake that treat "initialling"(always a long time being 1 means it failed) and "Succeed" just the same (because in both situation the "Downloadprogress" is 1).

Although I found out after hours' work that a counter may help us record the first time being 1 ("initialling") and second time being 1 ("succeed"), I still hope the Progress value can be 0 when downloading initially instead of 1. It is also good that Downloader can be more powerful as well.

# ccatto said on 01 February, 2008 09:41 AM

Hey Now Jesse,

I've seen this before. I think it may have been when I had SilverLight 1.0 installed then tried to view a 1.1 alpha page, but I can't remember. I've heard the 1.0 has to be unistalled before installing the 1.1 but haven't tried it on this pc.

Thx 4 the info,

Catto

# KeithRome said on 01 February, 2008 12:59 PM

I assume this is related to the bug that spuriously raises ImageError with codes 4001 and 3002 when you attempt to reuse a downloaded resource in subsequent calls to SetSource()?

It sure would be nice to be able to remove my workaround code from production sites:

www.mindfusioncorp.com/.../Silverlight+Bug+Using+A+Packaged+Image+Source+For+Multiple+Image+Elements.aspx

I would have reported the bug about 2 months ago if I knew of a good way to submit feedback to the product team...

Thanks,

Keith

# Community Blogs said on 01 February, 2008 02:21 PM

Early cream from Julie Lerman Shows us how to convert InkPresenter images to png, Shawn Wildermuth with

# drhender said on 01 February, 2008 03:10 PM

What about the Error Code 3001 I get when I attempt to "see more" in the samples gallery?  I am running the December 1.1 AlphaRefresh.

# jesseliberty said on 01 February, 2008 05:05 PM

Folks,

I know that there are a number of issues, and I certainly know how frustrating it can be (is this me or is this the framework?), but really the most effective place to get info when things go wrong is the Forums.

I wanted to get word out about this particular issue because folks were running into it when they were logging into our site, and I wanted you to know that we knew what it is, adn we're working on it. Hard.

# GearWorld said on 26 February, 2008 07:02 PM

So, I'm not alone.  Yeahhhh !!!!

Well, that's bad actualy.  I still don't know this is happening when I start my browser after a while but its sporadic not always happening.

# KHolt said on 10 March, 2008 11:59 AM

Do you have any more information / updates about this issue? I am seeing the 4001 MediaError on /some/ wmv streams, but not on others.

The streams that fail/throw 4001 seem to ALWAYS do so. Could it be something about that stream?

Will a fix for this bug be pushed out as an update  to 1.0?

Thanks for your help. All the questions and forum posts about "the 4001 Silverlight Error" eventually lead here... so I think a lot of developers are looking here for answers.

K.Holt

# KHolt said on 12 March, 2008 02:53 PM

I answered part of my question: The streams that are causing a 4001 error for me are ones that were encoded with Windows Media Audio 10 Professional. Silverlight (1.0) doesn't support WMA Pro OR Windows Media 10.

# KHolt said on 14 March, 2008 02:59 PM

Unfortunately, we are also encountering intermittent 4001 errors on videos that ARE encoded correctly. Sometimes they play, and sometimes they throw the 4001 error. This makes it very difficult to reproduce the error for testing purposes.

WILL THIS BUG BE ADDRESSED in a version pushed to the public before the release of Silverlight 2.0?

# jagsoft said on 23 April, 2008 07:54 AM

Ok, it's been about 3 months now since you indicated that the problem is known and it's being worked on. Do you have any time frames of when we may see a fix for this?

# jesseliberty said on 28 April, 2008 09:54 AM

Folks,

We are in Beta 1.  I can assure you that any bug of this magnitude will certainly be fixed before release, and I would expect that the overwhelming majority of such bugs (if not all) will be fixed by the time Beta 2 is released (promised for Q2, I believe).

I can look into the status of each individual bug, but that is not likely to do anything but start a cascade of emails about this bug and that bug that will only lead to frustration all around.

As far as I can tell, the dev team is not releasing interim builds until Beta 2, and there are very high standards for releasing the next beta.

I understand your frustration, but as software developers we've all faced the dilemma of working on very large complex projects that are not 100% in the first beta. :-)

# re: Download Error Code 4001? said on 28 April, 2008 10:46 AM

Pingback from  re: Download Error Code 4001?

# re: Download Error Code 4001? | My Geek Solutions said on 28 April, 2008 10:54 AM

Pingback from  re: Download Error Code 4001? | My Geek Solutions

# re: Download Error Code 4001? | My Geek Solutions said on 28 April, 2008 12:55 PM

Pingback from  re: Download Error Code 4001? | My Geek Solutions

# shawnbass.com - Virtualization blog said on 14 May, 2008 10:42 AM

Justin Zarb recently blogged about a video he found from a TechEd session where John Sheehan gave an overview of the new features in SoftGrid / MAV 4.5. I'd love to give all sort of nice comment ...

# SLRolik said on 13 June, 2008 02:44 AM

Hi,

Does anyone know if this is solved in Beta 2?

I get this message all the time with video (wmv)

produced from VS 2008 (don't think it is the path) both

locally and uploaded to http://silverlight.live.com.

Blend June preview starts the video ok.

Thanks,

Kent

# re: Download Error Code 4001? said on 13 June, 2008 04:48 AM

Pingback from  re: Download Error Code 4001?

# 畅想者 said on 07 July, 2008 11:47 PM
# scopique said on 11 July, 2008 02:07 PM

I'm still getting this as of 7.7.2008, so I would say that it's probably not yet fixed in SL2B2.

# archijack said on 22 July, 2008 05:34 PM

I have also still the problem with Beta 2. It occures only with a video. The strange thing is, that when I let it run in expression 2.5(July) it runs fine, but when I let it run in VS 2008 I get the error 4001.

# azzusaiyed said on 24 July, 2008 03:43 AM

i also have this problem, i am not able to work with image,image show this error.

# rvanderkooy said on 25 July, 2008 11:24 AM

I'm getting the same error come through, except mine has an error type of ImageError, does this also fall under the same category of "not my fault, its a silverlight bug"?  If not, any suggestions?

# cyberhuey said on 28 July, 2008 01:44 PM

Yup just got to here myself with 2 beta 2 so nope not fixed. I didn't have a problem until I started running from 3.5. I have no problem running in 3.0 from a html though.

# surbhiydv said on 10 September, 2008 02:09 AM

ya I am using beta 2 but problem is still there. Is there any solution to this?

# trainsdse said on 10 September, 2008 01:40 PM

Hi all,

First post, please be gentle.

I'm not sure if this has already been mentioned, but this problem is fixed for me when I placed the wmv in the ClientBin along side the xap.  This certainly isn't a permanent fix but at least I'm moving forward in some capacity.

Thomas

# royhiggs said on 01 October, 2008 01:57 AM

I'm still getting this 4001 error in SL2 RC0.

# telly said on 24 November, 2008 04:20 PM

Can you tell me if this issue has been fixed in the Silverlight 2.0 release?

I built a video player with a scrubber and *sometimes* when I'm scrubbing (changing the value of Media.Position), I get this  error.

I have a try/catch around it but it doesn't seem to help.

# CrackerboxOnline said on 03 December, 2008 10:41 PM

I've found a solution...I think!

I had 5 images in a folder that were being referenced individually in my xaml.  All 5 images were displaying fine when using the Play button in the Storyboard but only 1 image would display in Silverlight in the browser when I test.

I noticed that in the project pane only one image was present despite all 5 images being visible in Windows Explorer.

A refresh from Visual Studio (I could'nt find the refresh command from an Expression menu anywhere) and nothing happened...even in Visual Studio.

I resorted to Adding Existing items and selected the missing images.  A rebuild and test and all was working fine.

A refresh option in Expression and the same functionality in Visual Studio that works would be great.

# ekleeman said on 26 December, 2008 02:11 PM

I'm still getting this error with two different Silverlight2 apps, Slide.Show2 and Pageturn2. The apps work perfectly on my local host but crash on my dedicated web server. I have another Silverlight app that does not use a download package that works perfectly on my web server. This is a Silverlight BUG not an app level issue.

Is there a patch for this image source problem?

# jesseliberty said on 26 December, 2008 02:37 PM

Hello and thank you for writing.

I would encourage you to post your question in the Silverlight Forum because the programmers are closely monitoring the forums. I’ll also ask directly and see what I can learn and get back to you as I learn more.

Thanks.

# jaybird79 said on 23 January, 2009 05:16 PM

So any idea on when this bug will be resolved?  My silverlight 2 app was working fine and then it suddenly started spitting this error at me.  Everything works fine except for the annoying error.  Simply showing images should really be a simple operation!