zoukankan      html  css  js  c++  java
  • Metadata publishing for this service is currently disabled.

    Reason 1:

    In your web.config

    <service name="A.B.C">

    but your class is:

    namespace A.B
    {
        .....
        public class D : E
        {

    Those names need to match! The name= attribute on the <service> tag in config must be exactly what your service class is called - fully qualified, including namespace - so in your case here, it should be:

    <service name="A.B.D">

    Reason 2:

    Make sure Web.config have httpGetEnabled or httpsGenEnabled parameter in <serviceMetadata> tag.

    <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
              <serviceMetadata httpGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
  • 相关阅读:
    日本最大的汽车品牌:丰田【仅供自己参考】
    读书笔记1
    读书笔记1
    计算机网络笔记1
    ZY凉凉经
    HK凉凉经
    访问一个网站,发生了什么?
    正向代理VS反向代理
    mac下打开hosts文件
    国际手机区号
  • 原文地址:https://www.cnblogs.com/vincentDr/p/3968839.html
Copyright © 2011-2022 走看看