zoukankan      html  css  js  c++  java
  • WCF配置报错 在 ServiceModel 客户端配置部分中,找不到名称 和协定

    <?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”的终结点元素。这可能是因为未找到应用程序的配置文件,或者是因为客户端元素中找不到与此名称匹配的终结点元素。

  • 相关阅读:
    rabbitMQ学习笔记(二) 简单的发送与接收消息 HelloWorld
    rabbitMQ学习笔记(一)Windows 与Linux下rabbitMQ的安装
    数据库必知必会操作手册—创建高级联结
    面试题 16.11. 跳水板(数学法)
    面试题 08.06. 汉诺塔问题(分治递归)
    剑指 Offer 32
    剑指 Offer 32
    剑指 Offer 53
    剑指 Offer 30. 包含min函数的栈(辅助栈)
    剑指 Offer 58
  • 原文地址:https://www.cnblogs.com/WandererNet/p/2643010.html
Copyright © 2011-2022 走看看