<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint address="net.tcp://192.168.6.101:8000/DataAccessService" binding="netTcpBinding" bindingConfiguration="netTcpBindingSmiple"
contract="IDataAccessService" name="DataAccessService"></endpoint>
<endpoint address="net.tcp://192.168.6.101:8001/DataAccessServiceBCP" binding="netTcpBinding" bindingConfiguration="netTcpBindingSmiple"
contract="IDataAccessServiceBCP" name="DataAccessServiceBCP"></endpoint>
<endpoint address="net.tcp://192.168.6.101:8002/DataAccessServiceBIM" binding="netTcpBinding" bindingConfiguration="netTcpBindingSmiple"
contract="IDataAccessServiceBIM" name="DataAccessServiceBIM"></endpoint>
</client>
<bindings>
<netTcpBinding>
<binding name="netTcpBindingSmiple" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
closeTimeout="00:00:05" openTimeout="00:00:02" receiveTimeout="10:10:10" sendTimeout="00:00:30">
<!--<security mode="Message" >
<message clientCredentialType="UserName" />
</security >-->
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
第一个可以成功,下面两个全报错!!!!!不知道是什么原因,在次做个记录
在 ServiceModel 客户端配置部分中,找不到名称“DataAccessServiceBCP”和协定“IDataAccessService”的终结点元素。这可能是因为未找到应用程序的配置文件,或者是因为客户端元素中找不到与此名称匹配的终结点元素。