2013-02-11 77 views
0

我想与使用WCF NamedPipe IPC的两个应用程序进行通信,因为某些信息或app.config中使用的地址不正确,所以服务器和客户端之间的连接未建立。WCF NamedPipe IPC通信

我想有些东西因为通讯未建立而丢失,请帮忙?

例如: 服务器端

<system.serviceModel> 
    <services> 
     <service name="IService1"> 
      <endpoint address="net.pipe://localhost/Service1" 
        binding="netNamedPipeBinding" 
        contract="NamedPipeService.IService1" 
        name="ConsoleServiceEndpoint" /> 
     </service> 
    </services> 
</system.serviceModel> 

客户端:

<system.serviceModel> 
    <client> 
     <endpoint address="net.pipe://localhost/Service1" 
      binding="netNamedPipeBinding" contract="NamedPipeService.IService1"   name="ConsoleServiceEndpoint" /> 
    </client> 

+0

请问你能完成这个问题吗? – leppie 2013-02-11 16:07:11

+0

客户端和服务器在同一个盒子上吗?你知道NamedPipe只是同一个盒子吗? – Paparazzi 2013-02-11 16:43:36

+0

嗨客户端和服务器在同一台计算机上,但不包含在同一个解决方案中。 – 2013-02-12 09:48:19

回答

0

如果您的问题与SQL Server关联,另一个问题刚刚提出的相似,你可能会在相同的位置。

Please check this link.它可能与具有命名管道的sql服务器的协议是否启用有关。