Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now