I call a service from a Silverlight application and get the crossdomainploicy error. I put the clientaccesspolicy.xml in the same folder as the xap.file.
http://msdn.microsoft.com/en-us/library/cc197955%28v=vs.95%29.aspx
An error occurred while trying to make a request to URI ‘http://localhost/Service1.svc’. 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. You
may need to contact the owner of the service to publish a cross-domain
policy file and to ensure it allows SOAP-related HTTP headers to be
sent. This error may also be caused by using internal types in the web
service proxy without using the InternalsVisibleToAttribute attribute.
Please see the inner exception for more details
The
clientaccesspolicy.xmlshould be in the root folder of the domain hosting the service (e.g.http://mydomain.com/crossdomainpolicy.xml, not in the directory of the xap file.It’s clearly stated in the page you linked to: