在WCF服务获取例外 - 该协议'net.pipe“不支持 [英] Getting exception in wcf service - The protocol 'net.pipe' is not supported

查看:347
本文介绍了在WCF服务获取例外 - 该协议'net.pipe“不支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有IIS 7 WCF服务的部署与支持非HTTP启用

I have deployment of WCF service on IIS 7 with support for Non-HTTP enabled

在一个项目中,我已经暴露8个不同的服务, wsHttp 终端的正常工作。

Under one project, I have exposed 8 different services with wsHttp endpoints which works fine.

我也想揭露 NetNamedPipe 绑定相同的服务。

I want to also expose NetNamedPipe bindings for the same services.

我的样本 NetNamedPipe 绑定。 。

<netNamedPipeBinding>
    <binding name="PassportIPCBasicEndpoint" 
         closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" 
         sendTimeout="00:05:00"
         maxBufferSize="2147483647" maxBufferPoolSize="2147483647" 
         maxReceivedMessageSize="2147483647" transferMode="Buffered"
         hostNameComparisonMode="Exact"  >
      <readerQuotas
           maxDepth="2147483647" maxStringContentLength="2147483647" 
           maxArrayLength="2147483647" maxBytesPerRead="2147483647" 
           maxNameTableCharCount="2147483647"/>
      <security mode="Transport">
         <transport protectionLevel="None" />
      </security>
   </binding>
</netNamedPipeBinding>

和我的服务代码

<service behaviorConfiguration="default" name="MyAccountService.AccountService">
   <host>
      <baseAddresses>
         <add baseAddress="http://localhost/MyAccountService/v1.0/AccountService.svc" />
      </baseAddresses>
   </host>
   <endpoint name="PassportIPCBasicEndpoint" 
       address="net.pipe://localhost/MyAccountService/v1.0/AccountService.svc" 
       binding="netNamedPipeBinding" 
       bindingConfiguration="PassportIPCBasicEndpoint" 
       contract="MyAccountService.IAccountService"/>
</service>

这给了我以下异常:

的协议net.pipe不支持。

The protocol 'net.pipe' is not supported.

[出现InvalidOperationException:协议'net.pipe不被支持。]
  System.ServiceModel.Activati​​on.HostedTransportConfigurationManager.InternalGetConfiguration(字符串
  方案)

[InvalidOperationException: The protocol 'net.pipe' is not supported.] System.ServiceModel.Activation.HostedTransportConfigurationManager.InternalGetConfiguration(String scheme)

[InvalidOperationException异常:本ChannelDispatcher在
  'net.pipe://localhost/MyAccountService/v1.0/AccountService.svc'与
  合同(S)'IAccountService'无法打开它
  IChannelListener]

[InvalidOperationException: The ChannelDispatcher at 'net.pipe://localhost/MyAccountService/v1.0/AccountService.svc' with contract(s) '"IAccountService"' is unable to open its IChannelListener.]

我在IIS中添加了先进的站点设置为HTTP入口,net.pipe。

I have added entry for http,net.pipe in advanced site settings in IIS.

非HTTP的WCF服务的支持也将安装,并通过控制面板设置启用。

Non-HTTP support for WCF service is also installed and enabled through control panel settings.

出8 .SVC服务只有一个这样的服务是能够获得港举行,我可以浏览它的.SVC端点

out of 8 .svc services only one such service is able to get hold of port and I can browse it's .SVC endpoint

所有其他服务配置为netnamedPipe结合给我上面的错误时。

all other services when configured for netnamedPipe binding give me above errors.

一些机构可以引导我,什么需要做,使他们都弄个端口和访问。

Can some body guide me, what needs to be done to make them all get hold on port and be accessible.

推荐答案

此问题是与使协议在正确的地方。
previously我在站点级别已使net.pipe协议。

This problem was with enabling the protocols at the correct place. Previously i had enabled net.pipe protocol at site level.

启用net.pipe协议提供了托管服务的每个虚拟路径后。
它的工作。

After enabling net.pipe protocol at each virtual path of the hosted services. It worked.

这篇关于在WCF服务获取例外 - 该协议'net.pipe“不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆