4
votes

I am currently trying to host my silverlight app on sharepoint in a content editor webpart. But keep getting the error "The remote server returned an error: NotFound". Is this a problem with the SL app not having access to the web service or something else? I have added the clientaccesspolicy.xml file on the root of the site using SharePoint Designer. Is there anything else I need to do?

2

2 Answers

0
votes

What exactly is your Silverlight control trying to do? Does it show up in the page and then, when trying to connect somewhere, it shows the error message?

0
votes

What happens when you add to the url you are trying to use to connect to webservice from Silverlight, the clientaccesspolicy.xml? for instance, the url http://abc/clientaccesspolicy.xml should lead you to the content of this xml.

The second problem could be that your xml file is not correct. Which Silverlight version you are using?

as a example, here you have working clientaccesspolicy.xml for Silverlight 3.0 (checked on my IIS7)

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