My app.config file goes this way:<services>
<service behaviorConfiguration="DataModelService.Service1Behavior"
name="DataModelService.Service1">
<endpoint address="" binding="netTcpBinding" contract="DataModelService.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8731/Design_Time_Addresses/DataModelService/Service1/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="DataModelService.Service1Behavior"
name="NebulaDataModelService.Service2">
<endpoint address=""
binding="netTcpBinding"
contract="DataModelService.IService2">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8731/Design_Time_Addresses/DataModelService/Service1/"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DataModelService.Service1Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="False"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="DataModelService.Service2Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
.....
But when I run the TestWCF client for this I am getting error saying Channel is already registered.
Is this due to same base address given for both the services?
Can two service share the common baseaddress? If so can anyone help me out how can i do this?
Thanks & Regards
Padma