简体   繁体   English

如何在IIS中托管启用了网络命名管道绑定的WCF应用程序?

[英]How to host net named pipe binding enabled wcf application in iis?

I have a following configuration in my wcf service 我的wcf服务中有以下配置

    <endpoint address="" binding="netNamedPipeBinding" 
          contract="WcfWithNamedPipe.IService1" 
          bindingConfiguration="WcfWithNamedPipe.netNamedPipeBinding">
    </endpoint>

can any one suggest me how to host this wcf service in iis using netNamedPipe binding? 谁能建议我如何使用netNamedPipe绑定在iis中托管此wcf服务?

To get Named pipes to work on IIS you must enable Windows Process Activation Service (WAS) on IIS and configure the site that you are using to allow named pipes. 若要使命名管道在IIS上工作,必须在IIS上启用Windows进程激活服务(WAS)并配置要用于允许命名管道的站点。

For details see: http://msdn.microsoft.com/en-us/library/ms752253.aspx 有关详细信息,请参见: http : //msdn.microsoft.com/en-us/library/ms752253.aspx

Like Cybermax says in the comment it is a good idea to get it to work with basic http binding first. 就像Cyber​​max在评论中所说的那样,让它首先与基本的http绑定一起工作是一个好主意。

If you get to the point where you think that you have setup everything correctly and it still does not work, check the firewall settings. 如果您认为已正确设置了所有内容,但仍然无法正常工作,请检查防火墙设置。

Enable Named Pipe Activation. 启用命名管道激活。 In Windows 8 (and probably beyond?), open the " Turn Windows features on or off " window, and locate and check the following: 在Windows 8中(可能还有?),打开“ 打开或关闭Windows功能 ”窗口,然后查找并检查以下各项:

在此处输入图片说明

You also need to specify the net.pipe protocol for the application in IIS. 您还需要为IIS中的应用程序指定net.pipe协议。 Right click the node for the application, select Manage Application and Advanced Settings... . 右键单击该应用程序的节点,然后选择“ 管理应用程序高级设置...” Here you will probably have http under enabled protocolls . 在这里,您可能在启用的protocolls下有http Add , net.pipe after it and click OK to save it. 在其后添加, net.pipe ,然后单击“确定”进行保存。

在IIS中添加net.pipe

If everything else is correct, this should allow a call to a service to cause the service to be activated. 如果其他所有内容都正确,则应该允许对服务的调用以导致该服务被激活。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM