ClientAccessPolicy and CrossDomain files
ClientAccessPolicy.xml and CrossDomain.xml files for Silverlight applications
Hi,
While accessing the WCF service if you get error saying that there should be ClientAccessPolicy or CrossDomain file, just add this two sample files to Inetpub/wwwroot where your WCF service is hosted
ClientAccessPolicy.xml file
<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*" />
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
CrossDomain.xml file
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>