首页 文章

Mono WCF客户端异常:未实现所请求的功能

提问于
浏览
0

我使用Visual Studio 2008开发了一个C#WCF客户端应用程序,它工作正常 . 客户端应用程序使用wcf包装器类并使用WCF服务 . 但是当我使用MonoDevelop IDE在Redhat Linux 6.5中执行相同的源代码时,我在创建wcf对象时遇到以下异常 . WCF Web服务作为Windows服务运行 .

{System.NotImplementedException:未实现所请求的功能 . 在/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel中的System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration(System.ServiceModel.Channels.Binding binding)[0x00000] .Configuration / WSHttpBindingElement.cs:101./home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class中的System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration(System.ServiceModel.Channels.Binding binding)[0x00030]位于/ home / abuild / rpmbuild / BUILD /的System.ServiceModel.Configuration.ConfigUtil.CreateBinding(System.String binding,System.String bindingConfiguration)[0x00053]中的/System.ServiceModel/System.ServiceModel.Configuration/StandardBindingElement.cs:143 / home / abuild / rpmbuild /中的System.ServiceModel.ChannelFactory.ApplyConfiguration(System.String endpointConfig)[0x000e9]中的mono-3.4.0 / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / ConfigUtil.cs:104 BUILD /单3.4.0 / MCS /班/ System.ServiceModel / System.ServiceModel / ChannelFacto ry.cs:156,位于/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System中的System.ServiceModel.ChannelFactory.InitializeEndpoint(System.String endpointConfigurationName,System.ServiceModel.EndpointAddress remoteAddress)[0x00024] System.ServiceModel.ChannelFactory1中的.ServiceModel / System.ServiceModel / ChannelFactory.cs:309 [IMyMonitor] .. ctor(System.String endpointConfigurationName,System.ServiceModel.EndpointAddress remoteAddress)[0x00017] / home / abuild / rpmbuild / BUILD / System.ServiceModel.ClientBase1 [IMyMonitor]中的mono-3.4.0 / mcs / class / System.ServiceModel / System.ServiceModel / ChannelFactory_1.cs:73 .Initialize(System.ServiceModel.InstanceContext实例,System.String endpointConfigurationName,System.ServiceModel .EndpointAddress remoteAddress)[0x00000]在System.ServiceModel.ClientBase1 [IMyMonitor]的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:159中 . .ctor(System.ServiceModel.InstanceContext实例,System.String endpointCo System.ServiceModel.ClientBase1 [IMyMonitor]中的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:90中的nfigurationName)[0x00028] .. ctor System.ServiceModel.ClientBase中的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:79中的(System.ServiceModel.InstanceContext实例)[0x00000] `1 [IMyMonitor] .. ctor()[0x00000]在SenMonitorClient的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:54中 . 位于/mywork/myclient/Program.cs:285的myclient.start()[0x0079c]的/mywork/myclient/wcfService.cs:1429中的ctor()[0x00000]} System.NotImplementedException

Environment: MonoDevelop 4.2.3,mono 3.4.0

谢谢你的帮助 .

1 回答

  • 0

    WCF支持目前仅限于Mono,如此处所述 - mono-project.com/WCF WSHttpBinding及其依赖项是没有计划支持的组件 . 可能是你想要回到 basichttpbinding 这应该得到支持,因为它显示WCF模块正在开发直到带有silverlight 2.0子集的.NET 3.0 .

相关问题