Solved

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

Posted on 2013-02-01
4
1,364 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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