Sergey Smelov
Sergey Smelov

Reputation: 1081

How to replace standard wcf help page with a custom one?

I have created a wcf service (.net 3.5, it uses wsHttpBinding and hosts on IIS), and when i'm trying to hit the service from the browser i see standard help page 'you have created a service'. I don't want to see it. Instead of it i would like to see some custom page. I tried to use httpHelpPageUrl property, but with no luck. It just doesn't show the specified url.

This is a part of web.config:

<serviceMetadata httpGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="false" httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>

How could i replace this standard service help page with a custom one?

Thanks

Upvotes: 1

Views: 1184

Answers (1)

Christian Hayter
Christian Hayter

Reputation: 31071

Create a static page called default.htm (or a web form called default.aspx) in the same virtual directory as the service, and make sure it's configured to be the default page. I know it's not quite what you are looking for, but it would be just as useful to the consumers of your service.

Upvotes: 2

Related Questions