【发布时间】:2015-01-08 11:02:47
【问题描述】:
我有一个使用 wsdusalhttpbinding 的 wcf
WSDualHttpBinding binding = new WSDualHttpBinding();
binding.MaxBufferPoolSize = int.MaxValue;
binding.MaxReceivedMessageSize = int.MaxValue;
binding.Security.Mode = WSDualHttpSecurityMode.None;
binding.Security.Message.ClientCredentialType = MessageCredentialType.None;
_host.AddServiceEndpoint(typeof(IService), binding, baseAddress + "/ws");
//Mex
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
_host.Description.Behaviors.Add(smb);
_host.Open();
现在这可以在我的计算机和我的一位同事上运行,但在某些计算机上我们会收到此错误。
stacktrace 指向这一行。
_host.Open();
我不明白为什么它会说 WebHttpBinding 我用于此服务的唯一端点是我使用我编写的代码创建的端点。
【问题讨论】:
-
嗯我禁用了整个 Windows 防火墙并卸载了我在其中一台故障计算机上可以找到的所有病毒软件。我没有工作得更好
标签: c# wcf duplex wsdualhttpbinding