尝试在WCF声明中设置STS。我在客户端收到这样的信息:
“/ClientWebsite”应用程序中的服务器错误。无法处理消息,因为操作“http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT”无效或无法识别。
我该怎么解决这个问题?
发布于 2013-03-26 09:07:31
WIF 4.5和ADFS 2.0也有同样的问题。我通过禁用绑定上的安全上下文来解决这个问题:
binding.Security.Message.EstablishSecurityContext = false;发布于 2013-05-28 21:21:42
我刚刚遇到这个问题,不得不关闭WCF绑定上的安全上下文(就像Andy建议的那样)。您需要在客户端和服务中的绑定上关闭它们。
如果您的WCF是IIS托管的,下面是配置文件:
<ws2007FederationHttpBinding>
<binding>
<security mode="TransportWithMessageCredential">
<message establishSecurityContext="false" />
</security>
</binding>
</ws2007FederationHttpBinding>见本文:http://stack247.wordpress.com/2013/05/28/an-unsecured-or-incorrectly-secured-fault-was-received-from-the-other-party/
https://stackoverflow.com/questions/12972008
复制相似问题