WCF Error: Incorrect metadata publication for this service that is currently disabled

Source: Internet
Author: User

This is the Windows communication Foundation service.

Metadata publishing for this service is currently disabled.

If you have access to the service, you can modify the Web or application configuration file to enable metadata publishing by completing the following steps:

Solution:

This error generally occurs because there is no write

<behaviors>

<serviceBehaviors>

<behavior name= "Mybehavior" >

<servicemetadata httpgetenabled= "true"/>

</behavior>

</serviceBehaviors>

</behaviors>

Caused by.

In the configuration file, add the node, the name attribute, and the

<services>

<service behaviorconfiguration= "Mybehavior" ...

Solve the problem.

Author: wolfy

Source: http://www.cnblogs.com/wolf-sun/

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/net/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.