CrossDomain Error

I hosted a Silverlight application in IIS, now when I try to access the application, I get the following error

System.ServiceModel.CommunicationException: An error occurred while trying to make a request for a URI. This may be due to an attempt to access the service in a cross-domain mode without proper cross-domain access, an in-place policy or a policy unsuitable for SOAP services .....

I correctly placed the cross-domain policy in wwwroot, as well as in the virtual directory.

<?xml version="1.0"?> <cross-domain-policy> <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy> 
+4
source share
1 answer

If you don’t need to be compatible with Flash with a security policy, try using clientaccesspolicy.xml for Silverlight and see if you get the same error. Check out Tim Heyer 's blog post on troubleshooting file location errors if you still have issues

 <?xml version="1.0" encoding="utf-8" ?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="SOAPAction"> <domain uri="*" /> </allow-from> <grant-to> <resource include-subpaths="true" path="/" /> </grant-to> </policy> </cross-domain-access> </access-policy> 
+1
source

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


All Articles