0

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?

madth3
  • 7,275
  • 12
  • 50
  • 74
Xander
  • 9,069
  • 14
  • 70
  • 129

2 Answers2

0

I think the problem is that the file you have configured "ClientConfig.xml" should be called "clientaccesspolicy.xml" and be in the root of the website.

Here is a great post by tim heuer on using the clientaccesspolicy file.

Blounty
  • 3,342
  • 22
  • 21
0

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

Xander
  • 9,069
  • 14
  • 70
  • 129