【问题标题】:How Do You Add a ServiceReference When the Service Does not expose Meta Data?当服务不公开元数据时,如何添加服务引用?
【发布时间】:2009-03-04 15:31:13
【问题描述】:

这是对passing messages between two programs running on the same machine 上这篇帖子的跟进。

我正在尝试使用命名管道,但是当我尝试公开元数据时,我收到一个权限问题错误,提示 HTTP 无法注册 URL http://+:/8011/Local/Mex。我不需要公开 MetaData,因为这是一个非常简单的服务,它只传递一个整数并且只会被另一个程序使用。如果我不公开元数据,如何向消费程序添加服务引用?这是我的配对关闭服务....这是否可行,或者我是否必须通过尝试向机器和 NETSH 注册 HTTP 地址而进行斗争,这可以通过以最小权限运行的用户来完成吗?

<service name="WCFNamedPipeTestSever.Service1" >
      <endpoint name="WCFNamedPipeTestSever.Service1"
              address="net.pipe://localhost/service1"
              binding="netNamedPipeBinding"
              contract="WCFNamedPipeTestSever.IService1"            >
      </endpoint>
    </service>

【问题讨论】:

    标签: .net wcf


    【解决方案1】:

    您使用的是 mexHttpBinding 而不是 mexNamedPipeBinding?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多