Solved

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

Posted on 2013-02-01
4
1,287 Views
Last Modified: 2013-02-14
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.
0
Comment
Question by:RadhaKrishnaKiJaya
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Element1910
ID: 38845732
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.
0
 
LVL 9

Expert Comment

by:Orcbighter
ID: 38848521
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
0
 

Accepted Solution

by:
RadhaKrishnaKiJaya earned 0 total points
ID: 38871934
Hi Element1910 and Orcbighter, Thank you very much for your post here.  I really appricate it.  The real problem was with the web.config file, where we use auto generated machine key as password.  I changed the password to actual one.  After that machine generated it again and worked fine.  Thank you again for your help.
0
 

Author Closing Comment

by:RadhaKrishnaKiJaya
ID: 38888327
Reason is already stated.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question