简体   繁体   中英

WCF NamedPipe IPC communication

I want to communicate with two application using WCF NamedPipe IPC, The connection is not being established between server and client because some information or the address used in app.config is incorrect.

I suppose something is missing because of which the communication is not established, Please help ?

ex : Server Side

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

Client Side :

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

If your issue is associated with SQL Server, another question was just posed similar and you may be in the same position.

Please check this link. It may be associated with if the protocols for the sql server having the Named Pipes enabled or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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