【问题标题】:WCF Service Named PipesWCF 服务命名管道
【发布时间】:2015-12-21 07:17:24
【问题描述】:

我创建了一个具有以下配置的 WCF 服务:

<behaviors>

  <serviceBehaviors>
    <behavior name="WCFServiceNamedPipe">
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceMetadata />
    </behavior>
  </serviceBehaviors>

</behaviors>

<services>
  <service behaviorConfiguration="WCFServiceNamedPipe" name="WCFDemo2.Service1">
    <endpoint address="" binding="netNamedPipeBinding" bindingConfiguration=""
        name="WCFNamedPipeEndPoint" contract="WCFDemo2.IService1" />

    <host>
      <baseAddresses>
        <add baseAddress="net.pipe://localhost/NamedPipeExample" />
      </baseAddresses>
    </host>

  </service>
</services>

当我运行这个 exe 时,我没有收到任何错误。现在我尝试使用以下地址向客户端添加服务引用:

net.pipe://localhost/NamedPipeExample

我收到一个错误:

元数据包含无法解析的引用:“net.pipe://localhost/NamedPipeExample”。
从管道读取错误:无法识别的错误 109 (0x6d)。
从管道读取错误:无法识别的错误 109 (0x6d)。
如果在当前解决方案中定义了服务,请尝试构建解决方案并再次添加服务引用。

有什么建议可以帮我改正吗?

【问题讨论】:

  • 绑定配置为空
  • 那是响应,我添加了绑定配置,但它仍然给我同样的错误。

标签: c# wcf service-reference


【解决方案1】:

您没有公开任何元数据以便客户端可以检索服务的定义?

【讨论】:

    猜你喜欢
    • 2016-08-05
    • 1970-01-01
    • 2010-09-16
    • 2019-08-17
    • 2011-09-11
    • 2011-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多