zoukankan      html  css  js  c++  java
  • WCF:无法满足对安全令牌的请求,因为身份验证失败。

    服务端和客户端如果有认证的话的这样:

    <wsHttpBinding>
                <binding name="WSHttpBinding_IService1" closeTimeout="00:01:00"
                  openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                  bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                  maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
                  textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                  <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                    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" />
                  </security>
                </binding>
              </wsHttpBinding>

    发现客户端远程连接报错:无法满足对安全令牌的请求,因为身份验证失败。

    只需去掉认证就可以了:

    <security mode="None">
                   
                  </security>
  • 相关阅读:
    S3C2440实现dm9000网卡驱动程序移植
    IMX257虚拟网卡vnet驱动程序
    ram_flash驱动
    S3C2440 nor_flash驱动程序
    Java 打印* 三角形
    Java系列学习说明
    java案例1,打印hello java
    zabbixproxy安装
    python鉴黄程序
    mssql发布订阅事项
  • 原文地址:https://www.cnblogs.com/liuxinls/p/3154639.html
Copyright © 2011-2022 走看看