nettcpBinding

for nettcpBinding config file should be :

 

<system.serviceModel>
<services>
<service name=”WcfServicenettcp.Service1″ behaviorConfiguration=”WcfServicenettcp.Service1Behavior”>
<host>
<baseAddresses>
<add baseAddress = “http://localhost:655/WcfServicenettcp/Service1/&#8221; />
<add baseAddress = “net.tcp://localhost:878/WcfServicenettcp/Service1/” />
</baseAddresses>
</host>

<endpoint address =”WcfServicenettcp” binding=”netTcpBinding” contract=”WcfServicenettcp.IService1″>

<identity>
<dns value=”localhost”/>
</identity>
</endpoint>

<endpoint address=”mex” binding=”mexTcpBinding” contract=”IMetadataExchange”/>
</service>
</services>

<behaviors>
<serviceBehaviors>
<behavior name=”WcfServicenettcp.Service1Behavior”>
<serviceMetadata httpGetEnabled=”True”/>
<serviceDebug includeExceptionDetailInFaults=”False” />
</behavior>
</serviceBehaviors>
</behaviors>

</system.serviceModel>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s