I am using WCF with .NET 3.5 I am using named pipes but keep getting error
There was no listening to net.pipe endpoints: // localhost / A test that can receive a message. This is often caused by an invalid address or SOAP action.
I followed the tutorial http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication , but the problem remains. The endpoints on both the client and the server are the same (I checked spelling, etc.). There is no configuration file for this project, but it is in the code.
EDIT: Code (client):
ChannelFactory<ITest> pipeFactory =
new ChannelFactory<ITest>(
new NetNamedPipeBinding(),
new EndpointAddress(
"net.pipe://localhost/test"));
ITest test= pipeFactory.CreateChannel();
test.doStuff();
SERVER:
serviceHost = new ServiceHost(typeof(Test), new Uri("net.pipe://localhost"));
serviceHost.AddServiceEndpoint(typeof(ITest), new NetNamedPipeBinding(), "test");
File.Create(@"C:\test.txt");
serviceHost.Open();
thank
source
share