Hi @Scott S ,
You can try setting http(s)HelpPageEnabled to false
and http(s)GetEnabled to false
in Web.config and remove the metadata endpoint
before deploying.
ServiceDebugBehavior.HttpHelpPageEnabled
property: Gets or sets a value that controls whether WCF publishes an HTML help page at the address controlled by the HttpHelpPageUrl property.
Example:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false"/>
<serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Disable endpoint
<!--
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
-->
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.