Silverlight Slideshow + WCF
I downlo开发者_如何学Pythonaded this Silverlight project in order to use it on my asp webproject .
http://designwithsilverlight.com/?p=162
The slide show works fine inside its project with WCF methode that returns the img url from my database .
but when I add the XAP file and the html test page to my web project , no img loaded .
any idea ?
You achieve to cross-domain policy
you must create a xml file with this name: clientaccesspolicy.xml, and this content:
<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="SOAPAction,Content-Type">
<domain uri="*" />
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
then put this file to root of your web server or your project
精彩评论