Access Silverlight Sharepoint Web Services Error

I am currently trying to host a Silverlight application on a sharepoint in the content editor web part. But keep getting the error "The remote server returned an error: NotFound." Is it a problem that the SL application does not have access to the web service or something else? I added the clientaccesspolicy.xml file to the root directory of the site using SharePoint Designer. Anything else I need to do?

+4
source share
2 answers

What exactly is trying to control Silverlight? It appears on the page, and then when you try to connect somewhere, an error message is displayed?

0
source

What happens if you add the URL you are trying to use to connect to the web service from Silverlight, clientaccesspolicy.xml? for example, the URL http: //abc/clientaccesspolicy.xml should lead you to the contents of this xml.

The second problem may be that your XML file is incorrect. What version of Silverlight are you using?

as an example, here you have clientaccesspolicy.xml for Silverlight 3.0 (tested 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
source

Source: https://habr.com/ru/post/1299466/


All Articles