小弟实现用tcp跨机器传输消息,但是一直没有实现,望高手指导。下面是我的配置文件,请大家帮我看看有什么问题?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="WcfService.Service" behaviorConfiguration="serviceBehavior">
<host>
<baseAddresses>
<add baseAddress="net.tcp://192.168.200.1/myservice"/>
</baseAddresses>
</host>
<endpoint address="" binding="netTcpBinding" contract="WcfService.IService" bindingConfiguration="noSecurity"/>
<endpoint address="mex" binding ="mexTcpBinding" contract="IMetadataExchange"></endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehavior">
<serviceMetadata/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="noSecurity">
<security mode="None"/>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
你有啥问题?