【问题标题】:Configuration binding extension 'system.serviceModel/bindings/true' could not be found找不到配置绑定扩展“system.serviceModel/bindings/true”
【发布时间】:2014-03-23 07:55:31
【问题描述】:

找不到配置绑定扩展“system.serviceModel/bindings/true”。 验证此绑定扩展已在 system.serviceModel/extensions/bindingExtensions 中正确注册,并且拼写正确。

我已经为 .NET 3.5 安装了 Service Pack 1

        <add baseAddress="net.tcp://localhost:8090/"></add>
      </baseAddresses>
    </host>

  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="mexBehaviour">
      <serviceMetadata httpGetBinding="true" httpGetEnabled="true"/>

      </behavior>
    </serviceBehaviors>
    </behaviors>

  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>   
   </configuration>

请帮忙看看我哪里做错了?

【问题讨论】:

    标签: wcf


    【解决方案1】:

    httpGetBinding="true" 指的是绑定名称,可能您只需删除 httpGetBinding 属性并尝试使用默认值即可。签出:MSDN

    【讨论】:

    • 如果我删除了 httpGetBinding="true",我会遇到以下错误:在服务 newservices 实施的合同列表中找不到合同名称“IMetadataExchange”。将 ServiceMetadataBehavior 添加到配置文件或直接添加到 ServiceHost 以启用对此合同的支持。
    • 我删除 httpGetBinding="true" 启用 httpGetEnabled="true" HTTP 无法注册 URL http://+:8081/。您的进程没有此命名空间的访问权限发生错误..
    猜你喜欢
    • 2013-08-16
    • 2013-09-10
    • 1970-01-01
    • 1970-01-01
    • 2011-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多