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?