[英]WSDualHttpBinding wont work on some computers
我有一個使用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。 現在可以了。
我不知道該錯誤消息是什么意思,但它可能是錯誤的指針或某些東西。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.