Jesse Liberty - Silverlight Geek

By, For and About Silverlight Developers

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.

Comments

zhaiyj said:

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.

# January 31, 2008 7:52 PM

ccatto said:

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

# February 1, 2008 9:41 AM

KeithRome said:

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

# February 1, 2008 12:59 PM

Community Blogs said:

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

# February 1, 2008 2:21 PM

drhender said:

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.

# February 1, 2008 3:10 PM

jesseliberty said:

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.

# February 1, 2008 5:05 PM

GearWorld said:

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.

# February 26, 2008 7:02 PM

KHolt said:

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

# March 10, 2008 11:59 AM

KHolt said:

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.

# March 12, 2008 2:53 PM

KHolt said:

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?

# March 14, 2008 2:59 PM

jagsoft said:

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?

# April 23, 2008 7:54 AM

jesseliberty said:

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

# April 28, 2008 9:54 AM

re: Download Error Code 4001? said:

Pingback from  re: Download Error Code 4001?

# April 28, 2008 10:46 AM

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

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

# April 28, 2008 10:54 AM

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

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

# April 28, 2008 12:55 PM

shawnbass.com - Virtualization blog said:

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

# May 14, 2008 10:42 AM

SLRolik said:

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

# June 13, 2008 2:44 AM

re: Download Error Code 4001? said:

Pingback from  re: Download Error Code 4001?

# June 13, 2008 4:48 AM

畅想者 said:

# July 7, 2008 11:47 PM

scopique said:

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

# July 11, 2008 2:07 PM

archijack said:

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.

# July 22, 2008 5:34 PM

azzusaiyed said:

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

# July 24, 2008 3:43 AM

rvanderkooy said:

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?

# July 25, 2008 11:24 AM

cyberhuey said:

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.

# July 28, 2008 1:44 PM