Where to place ClientAccessPolicy.xml for Local WCF Service?

百般思念 提交于 2019-12-02 13:41:44

问题


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?


回答1:


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

link text

link text

link text



来源:https://stackoverflow.com/questions/2865895/where-to-place-clientaccesspolicy-xml-for-local-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!