zoukankan      html  css  js  c++  java
  • WCF:调用方未由服务器进行身份验证 yi

    解决方法。配置里添加:

     

    <configuration>
        <system.serviceModel>

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

    <services>
        <service name="WcfService2.Service1" behaviorConfiguration="WcfService2.Service1Behavior">
         <!-- Service Endpoints -->
         <endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" contract="WcfService2.IService1">

     红色部分就是添加的代码,服务端 客户端都要 这样添加。

    如果客户端未添加配置,会出现:

    无法打开安全通道,因为与远程终结点的安全协商已失败。这可能是由于用于创建通道的 EndpointAddress 中不存在 EndpointIdentity 或错误指定了 EndpointIdentity。请确认由 EndpointAddress 指定或暗示的 EndpointIdentity 正确标识了远程终结点。


     

  • 相关阅读:
    apk逆向工具总结
    DAY...
    DAY1-Flask项目
    Django笔记
    DAY8-Python学习笔记
    DAY7-Python学习笔记
    DAY6-Python学习笔记
    DAY5-Python学习笔记
    DAY4-Python学习笔记
    DAY3-Python学习笔记
  • 原文地址:https://www.cnblogs.com/yisheng163/p/2689949.html
Copyright © 2011-2022 走看看