Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

TCP error code 10061: No connection could be made because the target machine actively refused it

Hello Experts,
Currently I am trying to run a website from localhost (it is c# application rnning under Visual Studio 2008).  Till last week I did not have any issues.  All of a sudden I started getting this error as below.  Do you know what is causing it?  Many thanks in advance.

Could not connect to http://ServerName/xxxx/services/UserAuthService/. TCP error code 10061: No connection could be made because the target machine actively refused it xx.xx.xx.xxx:80.
Avatar of Element1910
Element1910
Flag of United States of America image

Are you trying to run a webservice from the web page? Verify that there is no anti-virus or firewall blocking the connection or process on the port running your web service. Also try to run netstat -anb from the command prompt to see that the web service/site is running under the expected port.
If your application was working last week, and now its not.
1. Have you changed anything on either machine since last week?
2. Have you confirmed that your firewall is not blocking the call?

If this is not the cause of your problem, then further investigation is warranted.
1. Ping the IP address to confirm it is reachable
2. Confirm that another application is not using that port
3. Confirm that your server is actually listening on that port
ASKER CERTIFIED SOLUTION
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Reason is already stated.