【问题标题】:Exception Security Context token in WCFWCF 中的异常安全上下文令牌
【发布时间】:2011-02-15 10:56:42
【问题描述】:

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

安全上下文令牌已过期或无效。消息未处理。

客户端配置

<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>

【问题讨论】:

    标签: wcf security service token


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-29
      • 1970-01-01
      • 2023-03-20
      • 2011-05-06
      相关资源
      最近更新 更多