I\'m wanting to get a WCF-over-TCP service working. I was having some problems with modifying my own project, so I thought I\'d start with the \"base\" WCF template included
Well, if you want to have metadata - TCP or HTTP - you still need to include the serviceMetadata
behavior!
<behaviors>
<serviceBehaviors>
<behavior name="WcfTcpTest.Service1Behavior">
<serviceDebug includeExceptionDetailInFaults="True" />
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
Sure, you can't have a "HttpGetEnabled" on it - but the behavior itself must be present in order to enable exchange of metadata (and thus the IMetadataExchange
contract).