locked
No connection could be made because the target machine actively refused it 127.0.0.1:17518 RRS feed

  • Question

  • User2108892867 posted

    Hello everyone, I am trying to use web service .asmx in my web application. The web service runs just fine when I execute it locally. However, when I uploaded it to my hosting server, it gave me this error message:

    No connection could be made because the target machine actively refused it 127.0.0.1:17518

    Any suggestion on how to fix this please? The post I found through google doesn't help me solve this problem. 

    Thanks. 

    Thursday, November 21, 2013 6:26 PM

Answers

  • User2108892867 posted

    Hello Amy Peng, thanks for the reply. I found out a way to solve this problem was to compile my web service into .dll file and used it as psedo class. To do that, after creating the web service, publish it as file system and add reference to your website. Hope it helps others too. 

    Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 4, 2013 3:17 PM

All replies

  • Thursday, November 21, 2013 9:15 PM
  • User-488622176 posted

    Hosting provider + port 17518 is asking for trouble :-)

    You host on IIS? Where do you get this error? You should use the default port (omit or use 80) the web server is running on...

    Friday, November 22, 2013 9:45 AM
  • User260886948 posted

    No connection could be made because the target machine actively refused it 127.0.0.1:17518

    Hi,

    When occur the above problem, it means that the host sent a reset instead of an ack when you tried to connect. It is therefore not a problem in your code.
    Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that port, this may be because it is not running at all or because it is listening on a different port. Once you start the process hosting your service try netstat -anb (requires admin privileges) to verify that it is running and listening on the expected port.  

    Best Regards,
    Amy Peng

    Wednesday, November 27, 2013 10:42 PM
  • User2108892867 posted

    Hello Amy Peng, thanks for the reply. I found out a way to solve this problem was to compile my web service into .dll file and used it as psedo class. To do that, after creating the web service, publish it as file system and add reference to your website. Hope it helps others too. 

    Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 4, 2013 3:17 PM