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服务吗?
2 个解决方案
#1
5
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 Process Activation Service (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.
就像Cybermax在评论中说的,让它首先使用基本的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.
如果您认为您已经正确地设置了所有内容,并且仍然没有工作,那么请检查防火墙设置。
#2
0
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(或可能超过?),打开“打开或关闭窗口的功能”窗口,并定位并检查以下内容:
You also need to specify the net.pipe protocol for the application in IIS. Right click the node for the application, select Manage Application and Advanced Settings.... Here you will probably have http
under enabled protocolls. Add , net.pipe
after it and click OK to save it.
您还需要指定网络。在IIS中的应用程序的管道协议。右击应用程序的节点,选择管理应用程序和高级设置....在这里,您可能会在启用了protocolls的情况下使用http。添加、净。在它之后设置管道并单击OK保存它。
If everything else is correct, this should allow a call to a service to cause the service to be activated.
如果其他一切都是正确的,那么应该允许调用服务来激活服务。
#1
5
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 Process Activation Service (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.
就像Cybermax在评论中说的,让它首先使用基本的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.
如果您认为您已经正确地设置了所有内容,并且仍然没有工作,那么请检查防火墙设置。
#2
0
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(或可能超过?),打开“打开或关闭窗口的功能”窗口,并定位并检查以下内容:
You also need to specify the net.pipe protocol for the application in IIS. Right click the node for the application, select Manage Application and Advanced Settings.... Here you will probably have http
under enabled protocolls. Add , net.pipe
after it and click OK to save it.
您还需要指定网络。在IIS中的应用程序的管道协议。右击应用程序的节点,选择管理应用程序和高级设置....在这里,您可能会在启用了protocolls的情况下使用http。添加、净。在它之后设置管道并单击OK保存它。
If everything else is correct, this should allow a call to a service to cause the service to be activated.
如果其他一切都是正确的,那么应该允许调用服务来激活服务。