Skip to main content

Microsoft Silverlight

Answered Question Image Error AG_E_NETWORK_ERRORRSS Feed

(0)

darwaish
darwaish

Member

Member

10 points

35 Posts

Image Error AG_E_NETWORK_ERROR

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_ERROR
Line: 453
Char: 17
Code: 0
URI: http://localhost/ScriptResource.axd?d=Y58p97aD_ZyNcZxYsuUVhbqYoGjh-QpezsgEFt-mN9ErAl0aO6qPOXIsquF1ig5809_rq10-1o-28gg1YBzA3Q2&t=ffffffff924217d1

 

jay nanavati
jay nana...

Contributor

Contributor

3388 points

624 Posts

Re: Image Error AG_E_NETWORK_ERROR

 can you share xaml code for user control "xaml1"?

Jay K Nanavaty
www.technologyopinion.com
Mark as answer if it helps. It will also help others...

darwaish
darwaish

Member

Member

10 points

35 Posts

Re: Image Error AG_E_NETWORK_ERROR

Unfortunately it is too complicated to share. Its has tens of usercontrols and other modules working together.

akshaysilverlight
akshaysi...

Member

Member

59 points

59 Posts

Re: Image Error AG_E_NETWORK_ERROR

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 ?

Cheers,
Akshay,India

ksleung
ksleung

Contributor

Contributor

5366 points

1,028 Posts

Re: Image Error AG_E_NETWORK_ERROR

are you trying to load a gif image?

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: Image Error AG_E_NETWORK_ERROR

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

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

darwaish
darwaish

Member

Member

10 points

35 Posts

Re: Image Error AG_E_NETWORK_ERROR

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.

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft
Answered Question

Re: Image Error AG_E_NETWORK_ERROR

Hi Darwaish,

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.

Best regards,

Jonathan

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

toshirotamigi
toshirot...

Member

Member

2 points

1 Posts

Re: Image Error AG_E_NETWORK_ERROR

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

 

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities