zoukankan      html  css  js  c++  java
  • WCF使用https后报错的问题

    报错:

    找不到具有绑定 webHttpEndpoint 的终结点的与方案 http 匹配的基址。注册的基址方案是 [https]

    <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    <standardEndpoints>
    <webHttpEndpoint>
    <!--
    Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
    via the attributes on the <standardEndpoint> element below
    -->
    <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
    </webHttpEndpoint>
    </standardEndpoints>

    <bindings>
    <webHttpBinding>
    <binding>
    <security mode="Transport">
    </security>
    </binding>
    </webHttpBinding>
    </bindings>


    </system.serviceModel>

    加上红色字体那段就ok了

  • 相关阅读:
    腾讯安全上海游戏部门笔试题
    2017
    2016
    2015
    2014
    2013
    2012
    2011
    2010
    2009
  • 原文地址:https://www.cnblogs.com/hinsxun/p/3272262.html
Copyright © 2011-2022 走看看