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

时间:2014-06-04 14:39:45

标签: linux wcf mono monodevelop redhat

我使用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 /茶nnelFactory.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.ChannelFactory 1[IMyMonitor]..ctor (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00017] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:73 at System.ServiceModel.ClientBase中的.ServiceModel / System.ServiceModel / ChannelFactory.cs:309 1 [IMyMonitor] .Initialize(System.ServiceModel.InstanceContext实例,System.String endpointConfigurationName,System.ServiceModel.EndpointAddress remoteAddress)[ 0x00000] /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:159 at System.ServiceModel.ClientBase 1[IMyMonitor]..ctor (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName) [0x00028] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:90 at System.ServiceModel.ClientBase 1 [IMyMonitor]系统中的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:79中的..ctor(System.ServiceModel.InstanceContext实例)[0x00000]。 /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System中的ServiceModel.ClientBase`1 [IMyMonitor] .. ctor()[0x00000] .ServiceModel / ClientBase.cs:54位于/mywork/myclient/Program.cs:285中myclient.start()[0x0079c]的/mywork/myclient/wcfService.cs:1429中的SenMonitorClient..ctor()[0x00000] System.NotImplementedException

环境: MonoDevelop 4.2.3,mono 3.4.0

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

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