简体   繁体   English

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

[英]Mono WCF Client Exception: The requested feature is not implemented

I have developed a C# WCF client application using Visual Studio 2008 and it works fine. 我已经使用Visual Studio 2008开发了C#WCF客户端应用程序,并且工作正常。 The client application uses the wcf wrapper class and consume the WCF service. 客户端应用程序使用wcf包装器类并使用WCF服务。 But when I execute the same source code in Redhat Linux 6.5 using MonoDevelop IDE, I am getting the following exception while creating a wcf object. 但是,当我使用MonoDevelop IDE在Redhat Linux 6.5中执行相同的源代码时,在创建wcf对象时遇到了以下异常。 The WCF web service is running as a windows service. WCF Web服务作为Windows服务运行。

{System.NotImplementedException: The requested feature is not implemented. {System.NotImplementedException:所请求的功能未实现。 at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration (System.ServiceModel.Channels.Binding binding) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WSHttpBindingElement.cs:101 at System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration (System.ServiceModel.Channels.Binding binding) [0x00030] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/StandardBindingElement.cs:143 at System.ServiceModel.Configuration.ConfigUtil.CreateBinding (System.String binding, System.String bindingConfiguration) [0x00053] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs:104 at System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String endpointConfig) [0x000e9] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFacto 在/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel中的System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration(System.ServiceModel.Channels.Binding绑定)[0x00000]处.home / abuild / rpmbuild / BUILD / mono-3.4.0 / mcs / class中的.Configuration / WSHttpBindingElement.cs:101位于System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration(System.ServiceModel.Channels.Binding绑定)[0x00030] / home / abuild / rpmbuild / BUILD /中的/System.ServiceModel/System.ServiceModel.Configuration/StandardBindingElement.cs:143,位于System.ServiceModel.Configuration.ConfigUtil.CreateBinding(System.String绑定,System.String bindingConfiguration)[0x00053] / home / abuild / rpmbuild /中位于System.ServiceModel.ChannelFactory.ApplyConfiguration处的mono-3.4.0 / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / ConfigUtil.cs:104(System.String endpointConfig)[0x000e9] BUILD / mono-3.4.0 / mcs / class / System.ServiceModel / System.ServiceModel / ChannelFacto ry.cs:156 at System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00024] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs:309 at 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 1[IMyMonitor].Initialize (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in /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 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] 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,位于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 1 [IMyMonitor]。初始化(System.ServiceModel.InstanceContext实例,System.StringendpointConfigurationName,系统.home / abuild / rpmbuild / BUILD / mono-3.4.0 / mcs / class / System.ServiceModel / System.ServiceModel / ClientBase.cs:159中位于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 .ServiceModel.EndpointAddress remoteAddress)[0x00000] 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]..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]..ctor (System.ServiceModel.InstanceContext instance) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:79 at System.ServiceModel.ClientBase`1[IMyMonitor]..ctor () [0x00000] in /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:54 at SenMonitorClient..ctor () [0x00000] in /mywork/myclient/wcfService.cs:1429 at myclient.start () [0x0079c] in /mywork/myclient/Program.cs:285 } System.NotImplementedException 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]的[tConfigurationName)[0x00028]。 ctor(System.ServiceModel.InstanceContext实例)[0x00000]在System.ServiceModel的/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:79中。 SenMonitorClient上/home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:54中的ClientBase Client1 [IMyMonitor] .ctor()[0x00000]。 /mywork/myclient/wcfService.cs:1429中的.ctor()[0x00000]位于myclient.start上的/mywork/myclient/Program.cs:285中的.ctor()[0x0079c]} System.NotImplementedException

Environment: MonoDevelop 4.2.3, mono 3.4.0 环境: MonoDevelop 4.2.3,mono 3.4.0

Thanks for your help. 谢谢你的帮助。

WCF support is currently limited on Mono and as mentioned here - mono-project.com/WCF WSHttpBinding and its dependencies are components with no plan to support. WCF支持目前仅受Mono支持,如此处所述-mono-project.com/WCF WSHttpBinding及其依赖项是没有计划支持的组件。 May be you want to fall back on to basichttpbinding which should be supported since it shows WCF modules were in development till .NET 3.0 with silverlight 2.0 subset. 可能是因为您希望返回支持basichttpbinding ,因为它表明WCF模块一直在开发中,直到带有Silverlight 2.0子集的.NET 3.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM