有关silverlight中调用webservice的问题!!

System.InvalidOperationException was unhandled by user code

客户端配置部分中,找不到引用协定“webxmlWeather.WeatherWebServiceHttpGet”的默认终结点元素。这可能是因为未找到应用程序的配置文件,或者是因为客户端元素中找不到与此协定匹配的终结点元素。

 
我在里面sl调用 webservice 老是出错哦~~
说是找不到函数。恩 服务端确实没这些异步的函数。。额 是sl产生的。
哪里没配置呢??。。
该这么办呢?


错误提示:
System.InvalidOperationException was unhandled by user code
  Message=在 ServiceModel 客户端配置部分中,找不到引用协定“webxmlWeather.WeatherWebServiceHttpGet”的默认终结点元素。这可能是因为未找到应用程序的配置文件,或者是因为客户端元素中找不到与此协定匹配的终结点元素。
  StackTrace:
       位于 System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
       位于 System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
       位于 System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
       位于 System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
       位于 System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName)
       位于 System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
       位于 System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
       位于 System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
       位于 System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
       位于 System.ServiceModel.ClientBase`1..ctor()
       位于 midwareproj.webxmlWeather.WeatherWebServiceHttpGetClient..ctor()
       位于 midwareproj.MainPage..ctor()
       位于 midwareproj.App.Application_Startup(Object sender, StartupEventArgs e)
       位于 System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       位于 MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
  InnerException:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值