Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

httpHelpPageUrl in web.config not working

Tags:

.net

wcf

I would like to replace the default help page url for me WCF service. According to this documentation i should be able to set the HttpHelpPageUrl and HttpHelpPageEnabled attributes in web.config and i should be in business. Not working for me.

I'm using .net 4.0. I know my serviceBehavior is getting recognized because i get results if i make other changes such as putting httpHelpPageEnabled="false".

This is my web.config:

  <serviceBehaviors>
    <behavior>
      <serviceMetadata httpGetEnabled="true"/>
            <serviceDebug includeExceptionDetailInFaults="True" httpHelpPageUrl="~/info.html" httpHelpPageEnabled="True" />
    </behavior>
  </serviceBehaviors>

This is the page i would like to replace: enter image description here

like image 924
capdragon Avatar asked Feb 14 '26 05:02

capdragon


1 Answers

According to this thread httpHelpPageUrl lets you move the default WCF help page to another location. So if you want to provide your custom page you should make a enpoint providing handling your HTML.

More details (including sample code) is here

like image 78
the_joric Avatar answered Feb 16 '26 20:02

the_joric