zoukankan      html  css  js  c++  java
  • 解决WCF跨机器调用时发生“调用方未由服务进行身份验证”的错误

    1、服务器端Web.config配置文件,增加如下部分:

    <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_NoneSecurity" maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">
          <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>
          <security mode="None"/>
        </binding>
      </wsHttpBinding>
    </bindings>
    </system.serviceModel>

    2、客户端app.config配置文件,修改或增加红色部分:

    <wsHttpBinding>
      <binding name="WSHttpBinding_IService1">
        <security mode="None" />
      </binding>
    </wsHttpBinding>
  • 相关阅读:
    股票F10
    什么是盘口?
    CompletionPort
    WSAEvent
    SO_KEEPALIVE选项
    SO_LINGER
    shutdown和close的区别
    TIME_WAIT和CLOSE_WAIT状态区别
    什么是2MSL
    WSAStartup function
  • 原文地址:https://www.cnblogs.com/plus301/p/6023567.html
Copyright © 2011-2022 走看看