尝试在我的网络服务中配置NetnamedPipeBinding
。
<endpoint
address="net.pipe://localhost:80"
binding="netNamedPipeBinding"
bindingConfiguration="netNamedPipeBinding_Service1"
contract="test.IService1">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
和绑定配置
<netNamedPipeBinding>
<binding name="netNamedPipeBinding_Service1"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
transactionFlow="false"
transferMode="Buffered"
transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288"
maxBufferSize="65536"
maxConnections="10"
maxReceivedMessageSize="65536">
<security mode="Transport">
<transport protectionLevel="EncryptAndSign" />
</security>
</binding>
</netNamedPipeBinding>
在IIS7中部署
在站点级别和虚拟目录级别启用net.pipe
管道,并启动Windows进程激活。
当我在IIS7 Server中部署时,
没有虚拟目录级别启用,它说
The protocol 'net.pipe' is not supported.
如果我在虚拟目录级别启用它,它会说,
This page can't be displayed
客户端的服务名称为WSHttpBinding
<client>
<endpoint address="http://localhost:60672/Service1.svc/ws" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IService1" contract="ServiceReference1.IService1"
name="WSHttpBinding_IService1" />
</client>
实际上我需要尝试wsHttpBinding
和netNamedPipeBinding
我试着用netNamedPipeBinding
Ii面对这些问题。我错过了什么吗?
有什么想法解决这个问题吗?