繁体   English   中英

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

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

我已经使用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绑定)[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,位于/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]的[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

环境: MonoDevelop 4.2.3,mono 3.4.0

谢谢你的帮助。

WCF支持目前仅受Mono支持,如此处所述-mono-project.com/WCF WSHttpBinding及其依赖项是没有计划支持的组件。 可能是因为您希望返回支持basichttpbinding ,因为它表明WCF模块一直在开发中,直到带有Silverlight 2.0子集的.NET 3.0。

暂无
暂无

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

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