Error Message Ag_e_network_error
Contents |
Silverlight MediaElement 4001 Error ★★★★★★★★★★★★★★★ David Bristol [msft]February 9, 20090 0 0 0 This is my first post on Silverlight,
Silverlight Error 4001
so I thought I would post on a common issue that I've 4001 error seen developers have problems with. Since I focus mainly on the MediaElement piece of Silverlight I'm going to message 4001 paypal stick almost solely to that on this blog when I post about Silverlight. If you've ever developed a Silverlight application that plays video, you've probably at some point seen the following error: Silverlight error messageErrorCode: 4001ErrorType: MediaErrorMessage: AG_E_NETWORK_ERROR In fact, it's probably the only error you've ever seen with regards to the MediaElement. That's because it IS the only error that MediaElement throws. Here are a few possible causes for this error: Streaming from WMS through an Authenticated Proxy - Silverlight gets video in two different modes. If the video is coming from a web server, such as IIS, then it is progressively downloading the video from the web site. This downloading is handled by the browser. If Silverlight is streaming from a Windows Media server then this streaming is handled internally by Silverlight and not by the browser. Since browsers support proxy authentication you will not see the 4001 error if you are getting the video content from a web server. Silverlight does not support proxy authentication natively and therefore doesn't support proxy authentication when streaming from a Windows Media server.There are only two workarounds, and they are the obvious ones. First, don't require proxy authentication on the proxy. Second, put the content on a web server. In the enterprise, this may not be an option. Codec Not Supported by Silverlight - Because Silverlight streams .wmv and .wma files you may have a video encoded with a codec that Silverlight does not support. The file extension .wma and .wmv are both forms of the ASF file format that Silverlight supp
2008 by crocusgirl I'm updating my existing applications to Silverlight 2 RC and bumped once again into the not so self-explanatory "AG_E_NETWORK_ERROR". Due to developer's-momentary-amnesia caused by ultra-multi-tasking , I just couldn't find a https://crocusgirl.wordpress.com/2008/11/19/silverlight-tip-ag_e_network_error/ reason for the error and spent unnecessary time to solve something I had already done once or twice. So I decided to note down an online tip to check out for future Silverlight experiments before diving into detailed forum searches. If your Silverlight application is using media files from your local application directory, you need to copy it to the ClientBin directory. In case you forget to error message do so, you will see an Error Dialog in your browser once you run the application with this joyful message: Error: Unhandled Error in Silverlight 2 Application SilverlightApp.xap Code: 4001 Category: MediaError Message: AG_E_NETWORK_ERROR This was the error in my application and taking a closer look at the ClientBin solved my problem. In fact, your error could be caused by something else. If you need some time to error message ag_e_network_error find more about your error, but you don't want your application to shoot out this error dialog, add the MediaFailed event to your MediaElement objects and handle errors as appropriate. This is a clue I got from Mike Snow's "Silverlight Tips of the Day" blog; which has always lots of up-to-date info! Here's some lyrical closing statement to end my entry plus today: May your night be bright as Silverlight. What if it's not amnesia; but a split personality issue?!? LOL. Upon further investigating this issue - actually it's quite obvious that the poet didn't/couldn't/won't remember the developer's error correction. Ok - no need to panic then; calm down; everything is resolved! Is it?!?🙂 Share this:TwitterFacebookLike this:Like Loading... Related Posted in TechExperiments | Tagged AG_E_NETWORK_ERROR, poet, Silverlight 2 | 8 Comments 8 Responses on November 21, 2008 at 1:29 am | Reply 2008 November 21 - Links for today « My (almost) Daily Links […] Crocus Girl gives us a Silverlight Tip [AG_E_NETWORK_ERROR] […] on February 27, 2009 at 12:46 pm | Reply Richard Thanks! That is what I needed! I added a carousel control and had the file mapped incorrect