zoukankan      html  css  js  c++  java
  • WCF--找不到具有绑定 BasicHttpBinding 的终结点的与方案 https 匹配的基址。注册的基址方案是 [http]。

      <system.serviceModel>
        <services>
          <service name="xxxxx.xxxxxx">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="aHttpBinding" contract="xxxxx.xxxxxx" name="xxxxx.xxxxx"></endpoint>
          </service>
        </services>
        <bindings>
          <basicHttpBinding>
    
            <binding name="aHttpBinding" maxReceivedMessageSize="1000000">
              <readerQuotas maxStringContentLength="1000000" />
              <security mode="Transport"> <!---------------------------------------------此处改为None----------------------->
              <transport clientCredentialType="None"/> 
            </security> 
            </binding>
    
          </basicHttpBinding>
        </bindings>
    
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false -->
              <serviceMetadata httpsGetEnabled="false" />
              <!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>

    原因不知道为什么,把mode改为None就可以

  • 相关阅读:
    Http Get Post put delete
    YII AR查询方法
    YII CJson类
    Yii 配置文件
    linux大文件分割 split命令
    chrome插件 postman插件 接口测试、API & HTTP 请求调试工具
    Yii 实现restful
    restful理解
    how tomcat works 读书笔记(一)----------一个简单的webserver
    HDU2206 IP的计算 【经典题】
  • 原文地址:https://www.cnblogs.com/25miao/p/8319077.html
Copyright © 2011-2022 走看看