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 Thursday, January 31, 2008 5:58 PM by jesseliberty

Comments

# re: Download Error Code 4001?

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.

Thursday, January 31, 2008 7:52 PM by zhaiyj

# re: Download Error Code 4001?

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

Friday, February 01, 2008 9:41 AM by ccatto

# re: Download Error Code 4001?

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

Friday, February 01, 2008 12:59 PM by KeithRome

# Silverlight Cream for Feruary 1, 2008 -- #187

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

Friday, February 01, 2008 2:21 PM by Community Blogs

# re: Download Error Code 4001?

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.

Friday, February 01, 2008 3:10 PM by drhender

# re: Download Error Code 4001?

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.

Friday, February 01, 2008 5:05 PM by jesseliberty

# re: Download Error Code 4001?

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.

Tuesday, February 26, 2008 7:02 PM by GearWorld

# re: Download Error Code 4001?

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

Monday, March 10, 2008 11:59 AM by KHolt

# re: Download Error Code 4001?

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.

Wednesday, March 12, 2008 2:53 PM by KHolt

# re: Download Error Code 4001?

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?

Friday, March 14, 2008 2:59 PM by KHolt

# re: Download Error Code 4001?

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?

Wednesday, April 23, 2008 7:54 AM by jagsoft

# re: Download Error Code 4001?

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. :-)

Monday, April 28, 2008 9:54 AM by jesseliberty

# re: Download Error Code 4001?

Pingback from  re: Download Error Code 4001?

Monday, April 28, 2008 10:46 AM by re: Download Error Code 4001?

# re: Download Error Code 4001? | My Geek Solutions

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

Monday, April 28, 2008 10:54 AM by re: Download Error Code 4001? | My Geek Solutions

# re: Download Error Code 4001? | My Geek Solutions

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

Monday, April 28, 2008 12:55 PM by re: Download Error Code 4001? | My Geek Solutions

# TechEd video describing new features in SoftGrid / MAV 4.5

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 ...

Wednesday, May 14, 2008 10:42 AM by shawnbass.com - Virtualization blog

# re: Download Error Code 4001?

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

Friday, June 13, 2008 2:44 AM by SLRolik

# re: Download Error Code 4001?

Pingback from  re: Download Error Code 4001?

Friday, June 13, 2008 4:48 AM by re: Download Error Code 4001?

# Silverlight 2.0 beta 2学习笔记(1)

Monday, July 07, 2008 11:47 PM by 畅想者

# re: Download Error Code 4001?

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

Friday, July 11, 2008 2:07 PM by scopique

# re: Download Error Code 4001?

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.

Tuesday, July 22, 2008 5:34 PM by archijack

# re: Download Error Code 4001?

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

Thursday, July 24, 2008 3:43 AM by azzusaiyed

# re: Download Error Code 4001?

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?

Friday, July 25, 2008 11:24 AM by rvanderkooy

# re: Download Error Code 4001?

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.

Monday, July 28, 2008 1:44 PM by cyberhuey

# re: Download Error Code 4001?

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

Wednesday, September 10, 2008 2:09 AM by surbhiydv

# re: Download Error Code 4001?

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

Wednesday, September 10, 2008 1:40 PM by trainsdse

# re: Download Error Code 4001?

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

Wednesday, October 01, 2008 1:57 AM by royhiggs

# re: Download Error Code 4001?

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.

Monday, November 24, 2008 4:20 PM by telly

# re: Download Error Code 4001?

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.

Wednesday, December 03, 2008 10:41 PM by CrackerboxOnline

# re: Download Error Code 4001?

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?

Friday, December 26, 2008 2:11 PM by ekleeman

# re: Download Error Code 4001?

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.

Friday, December 26, 2008 2:37 PM by jesseliberty

# re: Download Error Code 4001?

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!

Friday, January 23, 2009 5:16 PM by jaybird79