Https and http Image URL Not loading in silverlight

◇◆丶佛笑我妖孽 提交于 2019-12-24 11:04:57

问题


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>

回答1:


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://stackoverflow.com/questions/13718099/https-and-http-image-url-not-loading-in-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!