首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >netnamedpipebinding未能添加服务。服务元数据可能无法访问。

netnamedpipebinding未能添加服务。服务元数据可能无法访问。
EN

Stack Overflow用户
提问于 2014-04-24 12:14:18
回答 1查看 75关注 0票数 0
代码语言:javascript
复制
<services>          
      <service name="WcfServiceApplication.WallService" behaviorConfiguration="mex" >
        <host>
          <baseAddresses>
            <add baseAddress="net.pipe://localhost:10042/"/>
          </baseAddresses>
        </host>
        <endpoint address="WallService.svc"
                  binding="netNamedPipeBinding" bindingConfiguration="basic" name="Basic"
                  contract="WcfServiceApplication.IWallService"></endpoint>        
        <endpoint address="mex"
                  binding="mexNamedPipeBinding"
                  contract="IMetadataExchange"></endpoint>
      </service>
    </services>
    <bindings>
      <netNamedPipeBinding>
        <binding name="basic"></binding>
      </netNamedPipeBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="mex">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>    
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-24 20:44:46

我通过故障排除找到了解决方案,并解决了它。服务应该托管在一个进程中,然后被调用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23268583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档