Silverlight2 访问 服务器上的WCF提示错误An exception of type 'System.ServiceModel.ProtocolException

prettyfriend 2008-05-30 08:32:03
Silverlight2 访问 服务器上的WCF提示错误An exception of type 'System.ServiceModel.ProtocolException

错误提示为:
An exception of type 'System.UriFormatException' occurred in System.dll but was not handled in user code

Additional information: [net_uri_BadHostName]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.dll&Key=net_uri_BadHostName


注:

在网上找过一些资料说是要在服务器WCF 的根目录下放两个文件,crossdomain.xml和crossdomain.xml
已经放上去了,可还是报同样的错误,那位高手碰到同样的问题?
...全文
131 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
刀枪blue 2009-01-09
  • 打赏
  • 举报
回复
<client>
<endpoint address="http://localhost:4332/ThreeTablesService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IThreeTablesService"
contract="ThreeTablesServiceRef.IThreeTablesService" name="BasicHttpBinding_IThreeTablesService" />
</client>
magic_MM 2008-06-20
  • 打赏
  • 举报
回复
需要在代码里写
BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress endPoint = new EndpointAddress("http://192.128.1.15/ServiceWCF/WebService.svc");
g_UserSvcClient = new SLNewGis.ArchitectureService.WebServiceClient(binding, endPoint);

ourmessage 2008-06-05
  • 打赏
  • 举报
回复
你的连接写错了 ,wcf的endpoint你有没有修改.不明白的话加我QQ或者去看我的Blog

8,757

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧