啊!我以前做过这个,就是不记得了。当你登陆WCF .svc页面时,如何禁用此页面?这样它只显示一个空白页面?
答案 0 :(得分:2)
将ServiceDebugBehavior.HttpHelpPageEnabled Property设为false
示例:
<services>
<service
name="Microsoft.WCF.Documentation.SampleService"
behaviorConfiguration="metadataAndDebug">
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="metadataAndDebug">
<serviceDebug
httpHelpPageEnabled="false"
/>
</behavior>
</serviceBehaviors>
</behaviors>