Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 禁用WCF帮助页不工作_C#_Wcf - Fatal编程技术网

C# 禁用WCF帮助页不工作

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

我想禁用WCF服务的帮助页面。该文件以Service.svc/help结尾。根据其他地方的建议,我在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>