Solved

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

Posted on 2013-02-01
4
1,800 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 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