Https and http Image URL Not loading in silverligh

2019-07-30 18:54发布

问题:

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.