2013-02-11 66 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服務器的協議是否啓用有關。