Search code examples
asp.netsilverlightclientaccesspolicy.xml

Can't access silverlight web service


I have a clientaccesspolicy.xml that allows everything.

I use javascript to pop up a window from an aspx from the same server.

The aspx calls the web service but fails.

silverlight System.Security.SecurityException: Security error. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services.

<?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>

Any idea?


Solution

  • My servicereference.clientconfig was pointing to localhost instead of the deploy server :-(