开发者

Accessing sharepoint web services in Silverlight app Error

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 e开发者_Python百科lse I need to do?


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?


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜