Https和http图像URL不加载在silverlight [英] Https and http Image URL Not loading in silverlight

查看:467
本文介绍了Https和http图像URL不加载在silverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的silverlight应用程序中有两个图像标签一个是http图像URL,其他一个是https图像url



在本地系统http启用图像url加载但是https图片网址未加载。



当我在https启用的网站中托管应用程序时,它会显示https启用的图片网址,但不显示http启用的imageurl

如何处理此问题。

 我的客户端访问策略:

<?xml version =1.0encoding =utf-8?>
< access-policy>
< cross-domain-access>
< policy>
< allow-from http-request-headers =*>
< domain uri =http:// */>
< domain uri =https:// */>
< / allow-from>
< grant-to>
< resource include-subpaths =truepath =/>
< / resource>
< / grant-to>
< / policy>
< / cross-domain-access>
< / access-policy>


我的跨域策略:
<?xml version =1.0?>
< ;! DOCTYPE跨网域政策系统http://www.macromedia.com/xml/dtds/cross-domain- policy.dtd>
< cross-domain-policy>
< allow-access-from domain =*/>
< / cross-domain-policy>


解决方案

这似乎是Silverlight网址限制



http://msdn.microsoft.com/en-us/library/cc189008%28v=vs.95%29.aspx



您需要使用安全策略文件显式启用此功能。有关详细信息,请参阅Silverlight中的网络安全访问限制主题。


in my silverlight application i have two image tags one is with http image url and other one is https image url

in local system the http enabled image url is loading but the https image url is not loading.

when i host the application in https enabled site, it displays the https enabled image url but not displaying the http enabled imageurl

how to handle this issue.

my client access policy :

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
    <policy>
        <allow-from http-request-headers="*">
            <domain uri="http://*" />
            <domain uri="https://*" />
        </allow-from>
        <grant-to>
            <resource include-subpaths="true" path="/">
            </resource>
        </grant-to>
    </policy>
</cross-domain-access>
</access-policy>


my cross domain policy:
<?xml version="1.0"?>
<! DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-   policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

解决方案

It seems to be a problem with the Silverlight URL restrictions,Please check if you miss something to help you out from here.

http://msdn.microsoft.com/en-us/library/cc189008%28v=vs.95%29.aspx

You need to explicitly enable this with a security policy file. See Network Security Access Restrictions in Silverlight topic for more information.

这篇关于Https和http图像URL不加载在silverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆