AG_E_NETWORK_ERROR在SIlverlight [英] AG_E_NETWORK_ERROR in SIlverlight
问题描述
目录包含.jpeg图像。我在Silverlight中的C#中迭代这些图像。
这是我如何将服务器上的图像分配给SL中的图像占位符
BitmapImage bi = new BitmapImage();
bi.UriSource = new Uri(url + sharedLink + currentSlide +.jpg);
PresentationImage.Source = bi;
其中PresentationImage是图像的容器。
现在,当我可以访问一些目录,然后遍历这些图像,但是对于某些目录,我收到这个错误无法打开System.Exception:AG_E_NETWORK_ERROR
我在GOOGLE上找不到任何有用的链接。我不能得到这个错误的挂起。
任何人都可以引导我们发生什么事?
我收到这个错误,看到上面的链接也没有工作。在我的网页中显示我的.xap文件的路径不正确。而不是/MyApp.xap我需要MyApp.xap,因为我已经部署了它。 文件不存在,因为错误描述会更有意义!
建议检查运行时正在生成的文件路径。
I have few directories in my IIS server (physical location inetpub\wwwroot\SampleApp)
The directories contain .jpeg images. I am iterating these images in C# from Silverlight.
And this is how I assign the image on the server to my Image placeholder in SL
BitmapImage bi = new BitmapImage();
bi.UriSource = new Uri(url + sharedLink + currentSlide + ".jpg");
PresentationImage.Source = bi;
where PresentationImage is the container for Images.
Now, when I can access some of the directories and iterate through the images however for some of the directories I am getting this error Failed to open System.Exception: AG_E_NETWORK_ERROR
I couldn't find any helpful links on GOOGLE either. I cannot get a hang of this error.
Can anyone please give me a lead into whats happening?
I got this error and saw the above link which also didn't work. Turned out the path to my .xap file was incorrect in my webpage. Instead of "/MyApp.xap" I needed "MyApp.xap" because of the way I had deployed it. "File does not exist" as an error description would have made a lot more sense!
Suggest checking exactly what filepath is being generated at runtime.
这篇关于AG_E_NETWORK_ERROR在SIlverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!