我有一个使用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我用于此服务的唯一端点是我用我编写的代码创建的端点。
看来我发现了问题!
出现故障的计算机上的.net 4.0操作系统为“ Windows Embedded”或POS就绪操作系统。这些计算机的操作系统中肯定缺少某些东西,因为即使我的项目仅需要4.0,我也安装了.NET 4.5。现在就可以了。
我不知道该错误消息是什么意思,但它可能是错误的指针或某些东西。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句