C# 禁用WCF帮助页不工作
我想禁用WCF服务的帮助页面。该文件以Service.svc/help结尾。根据其他地方的建议,我在web.config中添加了以下内容C# 禁用WCF帮助页不工作,c#,wcf,C#,Wcf,我想禁用WCF服务的帮助页面。该文件以Service.svc/help结尾。根据其他地方的建议,我在web.config中添加了以下内容 <serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/> 但是我可以查看帮助页面。是否有其他设置需要更改?您可能需要签出: ` 您到底在web.config中添加了什么?我在ServiceBehavior标签下的web.config中添加了以下内容 `&
<serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>
但是我可以查看帮助页面。是否有其他设置需要更改?您可能需要签出:
`
您到底在web.config中添加了什么?我在ServiceBehavior标签下的web.config中添加了以下内容
`<system.serviceModel>
<services>
<service name="MyNamespace.MyService" behaviorConfiguration="NoHelpPageBehavior">
<endpoint address="" binding="basicHttpBinding" contract="MyNamespace.IMyContract" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="NoHelpPageBehavior">
<serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>
</behavior>
</serviceBehaviors>
</behaviors>