wcf - WCF 中的异常安全上下文 token

标签 wcf security service token

我正在使用 Service WCF,但出现以下错误:

The security context token is expired or is not valid. The message was not processed.



客户端配置
<endpoint address="http://probiz:49610/GestionOrganizacion.svc"
  binding="wsHttpBinding" 
  bindingConfiguration="WSHttpBinding_IOrganizacion"  
  contract="CarWin.ServiceContracts.Interfaces.IOrganizacion" 
  behaviorConfiguration="NewBehavior"
  name="PRO_WSHttpBinding_IOrganizacion">
<identity>
  <dns value="localhost" />
</identity>
<binding name="WSHttpBinding_IOrganizacion" closeTimeout="00:30:00"
    openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00"
    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
    maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
    allowCookies="false">
  <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="2147483647"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  <reliableSession ordered="true" inactivityTimeout="00:10:00"
      enabled="false" />
  <security mode="Message">
    <transport clientCredentialType="Windows" proxyCredentialType="None"
        realm="" />
    <message clientCredentialType="Windows" negotiateServiceCredential="true"
        algorithmSuite="Default" establishSecurityContext="true" />
  </security>
</binding>

更多配置:
  <endpointBehaviors>
    <behavior name="NewBehavior">
      <dataContractSerializer maxItemsInObjectGraph="2147483647" />
    </behavior>
  </endpointBehaviors>

最佳答案

将对消息强制执行安全性。如果不需要,您可能想尝试查看 msdn了解更多信息。

关于wcf - WCF 中的异常安全上下文 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2765293/

相关文章:

windows - Windows Installer服务启动时/V键是什么意思?

database - PostgreSQL 图形安装程序 : The specified service does not exist as an installed service

c++ - 从已编译的应用程序创建 Windows 服务

c# - 事件聚合器确认

共享库中的 C# WCF : Having a single app. 配置提供对服务的访问

android - 移动应用程序中帐户注册/注册/身份验证的最佳实践

c++ - 使用默认 mt19937 RNG 生成的 boost UUID 是否对 session ID 安全?

c# - 使用 NHibernate 和 CaSTLe WCF 工具在 WCF 上下文中处理 Rebus 消息

c# - 休息关系?

php - 如何防止 PHP 中的 SQL 注入(inject)?