码迷,mamicode.com
首页 > 其他好文 > 详细

Metadata publishing for this service is currently disabled.

时间:2014-09-12 19:04:23      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   strong   for   

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>

 

Metadata publishing for this service is currently disabled.

标签:style   blog   http   color   io   os   ar   strong   for   

原文地址:http://www.cnblogs.com/vincentDr/p/3968839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!