Read the page above and you might think that your configuration file should look like this
<configuration>
<system.serviceModel>
<services>
<service name="MyNameSpace.MyServiceType">
<host>
<baseAddresses>
< baseAddress baseAddress="http://localhost:8000/MyService/"/>
< baseAddress baseAddress="net.tcp://localhost:8010/MyService/"/>
</baseAddresses>
</host>
<endpoint address="Calculator" binding="basicHttpBinding" contract="MyNamespace.IServiceContract" />
</service>
</services>
</system.serviceModel>
</configuration>
But no… baseAddress element doesn’t work that way it works like this:
…
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/MyService/"/>
<add baseAddress="net.tcp://localhost:8010/MyService/"/>
</baseAddresses>
</host>
…
What clued me in was the initial bug at the top. The hierarchy doesn't match properly. After some random hunting around I saw some examples where the <add element is used and gave it a shot. Bingo!