ag_e_network_error.. errorCode: 4001
I knew that silverlight is not able to load the image file rather locate the image file. I did some google search and tried out the said solutions but none of them worked.
Image format could be an issue.. but not in my case as it was working with the solution provided by UI team.
Next thing was to do some trial and error. I hate doing this but this was the only way out as what happens within silverlight is a black box.
1. I tried different path combinations "/" vs "\".
2. Direct path "my dirve:\path...\*.png"
Solution:
3. Then I tried to other way of looking this problem. Since, I was running in debug mode, it struck me that silverlight run time is looking for the images at \Bin\Debug.
Thats it copying the images here worked like a charm.
Also, I copied the images to web folder\ClientBin where my xap will be hosted. It depends whether you want to test when in debug mode from VS or releasing it for users.
I hope this saves some of your time.
No comments:
Post a Comment