【问题标题】:WSDualHttpBinding wont work on some computersWSDualHttpBinding 在某些计算机上不起作用
【发布时间】: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


【解决方案1】:

看来我发现了问题!

故障计算机上的 .net 4.0 具有操作系统“嵌入式 Windows”或 POS 就绪操作系统。 这些计算机的操作系统中一定缺少某些东西,因为我安装了 .NET 4.5,即使我的项目只需要 4.0。现在它可以工作了。

我不知道错误消息是什么意思,但它可能是错误的指针或其他东西。

【讨论】:

    猜你喜欢
    • 2014-07-02
    • 2011-12-22
    • 1970-01-01
    • 2014-07-19
    • 2014-04-28
    • 1970-01-01
    • 2020-12-29
    • 1970-01-01
    • 2023-04-05
    相关资源
    最近更新 更多