ClientAccessPolicy and CrossDomain files

ClientAccessPolicy.xml and CrossDomain.xml files for Silverlight applications


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" ?>
<allow-from http-request-headers="*">
<domain uri="*" />
<resource path="/" include-subpaths="true" />

CrossDomain.xml file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "">
<allow-http-request-headers-from domain="*" headers="*"/>


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: