EndpointNotFoundException when working through tutorials in Learning WCF
Posted
by Nicholas
on Stack Overflow
See other posts from Stack Overflow
or by Nicholas
Published on 2010-05-22T12:55:18Z
Indexed on
2010/05/22
13:00 UTC
Read the original article
Hit count: 338
I am working through the book Learning WCF and on the first tutorial lab HelloIndigo I am receiving the following error.
Could not connect to http://localhost:8000/HelloIndigo/HelloIndigoService. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000.
It appears in the Client project on the line string s = proxy.HelloIndigo();
EndpointAddress ep = new EndpointAddress("http://localhost:8000/HelloIndigo/HelloIndigoService");
IHelloIndigoService proxy = ChannelFactory<IHelloIndigoService>.
CreateChannel(new BasicHttpBinding(), ep);
string s = proxy.HelloIndigo();
Console.WriteLine(s);
Console.WriteLine("Press <ENTER> to terminate Client");
Console.ReadLine();
I have intensively googled on this but I am none the wiser.
Can anyone explain the issue and how to remedy?
© Stack Overflow or respective owner