WSDualHttpBinding在某些计算机上不起作用

时间:2022-09-01 08:45:44

I have an wcf that uses an wsdusalhttpbinding

我有一个使用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();

Now this works on my computer and one of my colleagues but on some computers we get this error.

现在这适用于我的计算机和我的一位同事,但在某些计算机上我们收到此错误。

WSDualHttpBinding在某些计算机上不起作用

The stacktrace leads to this line.

堆栈跟踪通向此行。

_host.Open();

I dont understand why it would say WebHttpBinding the only endpoint I use for this service is the one I create with the code I wrote.

我不明白为什么它会说WebHttpBinding我用于此服务的唯一端点是我用我编写的代码创建的端点。

1 个解决方案

#1


0  

It seems i found the problem!

好像我发现了问题!

.net 4.0 on the faulted computers had the os "Windows embedded" or POS ready OS. there must be something missing in the OS of those computers because i installed .NET 4.5 even though my project only requires 4.0. and now it works.

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

I have no idea what the error message means but its maybe som wrong pointer or something.

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

#1


0  

It seems i found the problem!

好像我发现了问题!

.net 4.0 on the faulted computers had the os "Windows embedded" or POS ready OS. there must be something missing in the OS of those computers because i installed .NET 4.5 even though my project only requires 4.0. and now it works.

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

I have no idea what the error message means but its maybe som wrong pointer or something.

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