禁用WCF指令页

禁用WCF指令页,wcf,Wcf,啊!!我以前做过,只是想不起来了。当您登录到WCF.svc页面时,如何禁用此页面?所以它只显示一个空白页 将设置为false 例如: <services> <service name="Microsoft.WCF.Documentation.SampleService" behaviorConfiguration="metadataAndDebug"> </service> </services> <behavior

啊!!我以前做过,只是想不起来了。当您登录到WCF.svc页面时,如何禁用此页面?所以它只显示一个空白页

将设置为false

例如:

<services>
  <service 
    name="Microsoft.WCF.Documentation.SampleService"
    behaviorConfiguration="metadataAndDebug">
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="metadataAndDebug">
      <serviceDebug 
        httpHelpPageEnabled="false" 
      />
    </behavior>
  </serviceBehaviors>
</behaviors>