我有一个wcf,它使用wsdusalhttpbinding。
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();现在,这在我的计算机和我的一个同事上工作,但是在一些计算机上,我们得到了这个错误。

堆栈跟踪指向这一行。
_host.Open();我不明白为什么它会说WebHttpBinding --我为这个服务使用的唯一端点--是我用我编写的代码创建的端点。
发布于 2015-01-09 10:40:39
看来我找到问题了!
.net 4.0在故障计算机上有操作系统"Windows“或POS就绪操作系统。这些计算机的操作系统中肯定缺少一些东西,因为我安装了.NET 4.5,尽管我的项目只需要4.0。现在起作用了。
我不知道错误信息是什么意思,但是它可能是错误的指针什么的。
https://stackoverflow.com/questions/27838537
复制相似问题