I’ve got an ASP.NET-hosted WCF application. At the moment, it displays a 403.14 - Forbidden: The Web server is configured to not list the contents of this directory. error.
I’d like to replace this with something friendlier. However, I’d like to display a different page to localhost than to other visitors. The localhost page should have a little bit more information about where to look in the documentation for example.
You can add a
Default.aspxto your WCF project. In the code behind you can add the following line in yourPage_Load