开发者

Where to place ClientAccessPolicy.xml for Local WCF Service?

开发者 https://www.devze.com 2022-12-31 01:42 出处:网络
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/

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 b开发者_Python百科e 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?


I thnk this is duplicate question : here are some links , see if any of them helps u :

link text

link text

link text

0

精彩评论

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

关注公众号