首页 > 代码库 > Metadata publishing for this service is currently disabled.
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>
Metadata publishing for this service is currently disabled.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。