Recommended

Skip Navigation LinksHome / News / View News

How to handle image AG_E_NETWORK_ERROR errors

+ Add to SilverlightShow Favorites
3 comments   /   posted by Silverlight Show on Jan 28, 2009
(0 votes)

Here is another of Mike Snow’s tips of the day. Mike will explain you how to handle image AG_E_NETWORK_ERROR errors.

Mike:
If you have ever worked with images while developing and running Silverlight app you have more than likely come across the AG_E_NETWORK_ERROR  exception. This exception is thrown if an image was not able to load for whatever reason (I.e. it couldn’t be found, corrupt, etc.). In order to prevent your users from seeing this error it’s important to monitor for the ImageFailed event for each image your try to load.
Share


Comments

Comments RSS RSS
  • RE: How to handle image AG_E_NETWORK_ERROR errors  

    posted by rohit on Sep 02, 2009 20:56
    hane u have any solution for this error?
  • RE: How to handle image AG_E_NETWORK_ERROR errors  

    posted by rohit on Sep 02, 2009 21:08
    hane u have any solution for this error?
  • RE: How to handle image AG_E_NETWORK_ERROR errors  

    posted by LPD on Oct 04, 2009 20:12
    You can trap the error. BitmapImage, Image, ImageBrush, MultiScaleImage all have an ImageFailed event.  Just set an event handler to it.

Add Comment

 
 

   
  
  
   
Please add 6 and 5 and type the answer here:

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)