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

  • 相关阅读:
    .NET开源系统
    DEDEcms二次开发数据表参数
    dede系统的pagebreak文章页面分页数量控制方法
    窗口最小化到托盘
    SEO项目各个阶段的工作分配
    scrollTop
    去除行内块间的间距
    jquery mobile
    nodejs学习
    cancelAnimationFrame无效
  • 原文地址:https://www.cnblogs.com/WandererNet/p/2643010.html
Copyright © 2020-2023  润新知