Skip to main content
Home Forums Silverlight Design Video and Media Image Error AG_E_NETWORK_ERROR
8 replies. Latest Post by toshirotamigi on June 13, 2009.
(0)
darwaish
Member
10 points
35 Posts
05-28-2009 10:13 AM |
I have listbox and media player. when user clicks on an item in the listbox, player starts the corresponding video. I also update the icon for the item to show that it is being played and update icon again when video ends.
Now for only one video when it ends I get this ImageError although all the images I am updating appear to be working fine. For all other videos, when they finish icon status gets updated without this error. Its the same piece of code and set of icons that get called when a video finishes. Is there anyway if I could see what image it is trying to get? Below is the message I get
Message: Sys.InvalidOperationException: ImageError error #4001 in control 'Xaml1': AG_E_NETWORK_ERRORLine: 453Char: 17Code: 0URI: http://localhost/ScriptResource.axd?d=Y58p97aD_ZyNcZxYsuUVhbqYoGjh-QpezsgEFt-mN9ErAl0aO6qPOXIsquF1ig5809_rq10-1o-28gg1YBzA3Q2&t=ffffffff924217d1
jay nana...
Contributor
3388 points
624 Posts
05-28-2009 10:44 AM |
can you share xaml code for user control "xaml1"?
05-28-2009 10:48 AM |
Unfortunately it is too complicated to share. Its has tens of usercontrols and other modules working together.
akshaysi...
59 points
59 Posts
05-28-2009 8:23 PM |
Can you tell what code you have written to update the image when your movie ends.
Are the images controls , which you are updating ,dynamically added on the page ?
ksleung
5366 points
1,028 Posts
05-28-2009 8:32 PM |
are you trying to load a gif image?
Jonathan...
All-Star
24939 points
2,425 Posts
06-03-2009 3:55 AM |
Hi Darwaish,
darwaish:Message: Sys.InvalidOperationException: ImageError error #4001 in control 'Xaml1': AG_E_NETWORK_ERROR
"ImageError error #4001" is often raised when we try to visit the image with a invalid address. That maybe caused by a wrong location or invalide address. To check this, we can use a debugging tool, such as Fiddler, Web Development Helper etc to get the real address. Based on your description, we would suggest you first check the picture can work with Image individually. Then, check the access address and copy it to a browser to see whether it works or not. Finally, comment out your code and check out whether the issue is raised by the Image or other controls. We cannot put our feet in your shoes since we didn't get the source code. If it doesn't work, please first narrow down the issue and share a repro or code snippet at least.
Best regards,
Jonathan
06-03-2009 12:17 PM |
Thanks for reply Jonathan. I agree that my question did not have much detail for other to help.
My problem is that I dont even know for which image I am getting this error, because my app seems to working fine and I see all the images working correctly.
What I actually wanted to know if there is a way to see the "name or url of the image" for which this error is being generated.
If I know the image name or url atleast I would know which module is having problem because whole app has 10K+ lines of code and honestly I have no idea which module is causing this problem because I dont see any issue on UI. I wanted to know if there is any easy to way to see image name before I go through the painful process of debugging module by module, setting watches and break points :)
As you mentioned, may be I will try fillder and web dev help to see all the images requests generated right before I get the error.
06-03-2009 11:39 PM |
darwaish:What I actually wanted to know if there is a way to see the "name or url of the image" for which this error is being generated.
Currently, we'd better use these debugging tools, which will show you the urls, status and other details. If you have found anything, please share it with us. By the way, as I said on my last reply, your issue may caused by other reasons. If it cannot be fixed by using these ways, we need to comment out part of your code to narrow down the issue. Thanks for your understanding.
toshirot...
2 points
1 Posts
06-13-2009 3:11 PM |
You can try to use Fiddler, and have a look at what request do fails.
It is a very useful tool to have when developing with silverlight.
Another way to do this could be using Firebug, a debugging tool for firefox.
here are the links:
http://www.fiddler2.com/fiddler2/
http://getfirebug.com/
Alessio