tags:

views:

16

answers:

2

I have a clientconfig.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 and BAM

fail

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>

HELP!

A: 

Hi there,

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
A: 

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

zachary