在Silverlight和C#中使用自动完成框的搜索按钮的代码是什么 [英] what is the code for search button using autocompletebox in silverlight and c#

查看:81
本文介绍了在Silverlight和C#中使用自动完成框的搜索按钮的代码是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经使用c#和wcf在Silverlight中开发了自动完成框,但出现错误...


i have developed auto complete box,in silverlight using c#,and wcf but i got an error...like,

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


如何纠正此错误


how to rectify this error

推荐答案

您必须将crossdomain.xml文件添加到您的项目中,以便获得您的wcf.
http://msdn.microsoft.com/en-us/library/cc197955 (v = vs.95).aspx [
you have to add crossdomain.xml file to your project inorder to aceess your wcf.
http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx[^]


这篇关于在Silverlight和C#中使用自动完成框的搜索按钮的代码是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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