CommunicationException未被用户代码处理 [英] CommunicationException was unhandled by user code

查看:93
本文介绍了CommunicationException未被用户代码处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我通过silverlight按钮点击事件在wcf服务中运行批处理文件。获取以下异常。我搜索了许多没有得到正确解决方案的网站。甚至我将clientaccesspolicy.xml文件放在root directry以及solution文件夹中。这个例外有什么问题。



例外:



Hello every one,

I am running a batch file in wcf service through silverlight button click event.Getting the following exception. I have googled for many sites not getting the proper solution. Even I placed clientaccesspolicy.xml file in root directry as well as in solution folder. What was the problem for this exception.

Exception:

An error occurred while trying to make a request to URI 'http://localhost:54025/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.





提前致谢。 .....

BR



Thanks in advance......
BR

推荐答案

请阅读链接。它将解决您的问题。

http://social.msdn.microsoft.com/Forums/en-US/silverlightweb/thread/85b4b91e-7aa6-4f7b-82ed-8ecf30e9bfef/ [ ^ ]
Please read the link. It will solve your problem.
http://social.msdn.microsoft.com/Forums/en-US/silverlightweb/thread/85b4b91e-7aa6-4f7b-82ed-8ecf30e9bfef/[^]


这篇关于CommunicationException未被用户代码处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆