locked
TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000. RRS feed

  • Question

  • When I work through an execise i get the 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.

     

    The Code is simple

     

    EndpointAddress ep = new EndpointAddress("http://localhost:8000/HelloIndigo/HelloIndigoService");

     

    IHelloIndigoService proxy = ChannelFactory<IHelloIndigoService>.CreateChannel(new BasicHttpBinding(), ep);

     

    string s = proxy.HelloIndigo();

     

    And I've opened port 8000 on the fire wall what else am I missing?

    Thanks!

     

    Monday, April 5, 2010 2:06 AM

Answers

  • The error indicates that the services are not hosted properly. When the target service is not running and we try to ping this service using TCP, the target machine refuses the connection. Pls check if the service is hosted properly. If its hosted properly, then you ned to enable tracing and message logging to get the actual error details

    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    • Proposed as answer by Haripraghash Wednesday, April 7, 2010 11:38 AM
    • Marked as answer by Mog Liang Monday, April 12, 2010 8:34 AM
    Monday, April 5, 2010 2:17 AM