Where to place ClientAccessPolicy.xml for Local WCF Service?

Posted by cam on Stack Overflow See other posts from Stack Overflow or by cam
Published on 2010-05-19T13:30:23Z Indexed on 2010/05/19 13:40 UTC
Read the original article Hit count: 572

I'm trying to create a basic WCF Service and Silverlight client.

I've followed the following tutorial: http://channel9.msdn.com/shows/Endpoint/Endpoint-Screencasts-Creating-Your-First-WCF-Client/

Since Silverlight 4 was incompatible with the WSHttpBinding, I changed it to BasicHttpBinding.

Unfortunately I keep getting this error now: "An error occurred while trying to make a request to URI'**'.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."

I placed clientaccesspolicy.xml in the root directory of the WCF project (which is in the same solution as the Silverlight client). This did not solve the problem.

What do I need to do?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about clientaccesspolicy.xml