gpt4 book ai didi

linux - 单声道WCF客户端异常: The requested feature is not implemented

转载 作者:太空宇宙 更新时间:2023-11-04 03:57:59 25 4
gpt4 key购买 nike

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

{System.NotImplementedException: The requested feature is not implemented. 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/ChannelFactory.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.ChannelFactory1[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.ClientBase1[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.ClientBase1[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.ClientBase1[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

环境: MonoDevelop 4.2.3、mono 3.4.0

感谢您的帮助。

最佳答案

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

关于linux - 单声道WCF客户端异常: The requested feature is not implemented,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24040489/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com