带有wsHTTPBinding错误的WCF“安全上下文令牌已过期或无效.该消息未处理. [英] WCF with wsHTTPBinding error "The security context token is expired or is not valid. The message was not processed."

查看:103
本文介绍了带有wsHTTPBinding错误的WCF“安全上下文令牌已过期或无效.该消息未处理.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vinay

推荐答案

>

还请查看以下内容:

Also take a look at the following:

事物使用WCF实施负载均衡器时需要考虑的问题

> https://msdn.microsoft.com/zh-cn/library/hh273122(v = vs.100).aspx

https://msdn.microsoft.com/en-us/library/hh273122(v=vs.100).aspx

如果未启用粘性会话,并且WSHttpBinding的EstablishmentSecurityContext属性设置为true或未指定, ,则可能会收到System.ServiceModel.FaultException. 此错误意味着安全上下文令牌已过期或无效,并且未处理该消息.在服务器之间建立安全会话时,将有一个一次性的初始步骤,用于交换不对称加密的消息. 后续请求使用此已建立的会话,并且消息被对称加密.这些后续请求之一可能会路由到不属于已建立会话的服务器.这将导致出现FaultException.如果 建立安全性上下文属性设置为false,一次性初始步骤不执行,并且请求不依赖已建立的会话.这是使用粘性会话的替代方法."

"If sticky sessions are not enabled, and the establishSecurityContext property of the WSHttpBinding is set to true or it is not specified, it is possible to receive a System.ServiceModel.FaultException. This error means that the security context token is either expired or is invalid, and the message was not processed. When a security session is established between servers, there is a one-time initial step that exchanges asymmetrically encrypted messages. Subsequent requests use this established session and messages are symmetrically encrypted. It is possible that one of these subsequent requests is routed to a server that is not a part of the established session. This causes a FaultException to occur. If the establishSecurityContext property is set to false, the one-time initial step is not executed, and requests do not rely on an established session. This is the alternative to using sticky sessions."

样本绑定



这篇关于带有wsHTTPBinding错误的WCF“安全上下文令牌已过期或无效.该消息未处理.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆