Tuesday, December 28, 2010

Error retrieving CRM information in a Silverlight (System.Security.SecurityException: Security error)

01. To Solve : use a crossdomain.xml file to allow cross-domain access
02.create crossdomain.xml file to CRM hosted folder in IIS (Root)

crossdomain.xml
<?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 include-subpaths="true" path="/"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>