Failed To Connect Error 10061 Mcafee
Contents |
Support Home © 2003-2016 McAfee, Inc.
Support Home © 2003-2016 McAfee, Inc.
target machine actively refused it. .NET Framework > Windows Communication Foundation, Serialization, and Networking Question 0 Sign in to vote I hosted a wcf service https://social.msdn.microsoft.com/Forums/vstudio/en-US/58e420e9-43a3-4119-b541-d18158038e36/tcp-error-code-10061-no-connection-could-be-made-because-the-target-machine-actively-refused-it?forum=wcf application using windows services. When my client (ASP.NET) tries to call the service class hosted by the windows service, I get this error "TCP error code 10061: No connection could be made because http://stackoverflow.com/questions/2972600/no-connection-could-be-made-because-the-target-machine-actively-refused-it the target machine actively refused it. ". Is there a fix for this? The same code works fine if I host it using a console application. Friday, December 08, 2006 5:25 PM Reply error 10061 | Quote Answers 2 Sign in to vote What port are you listening on? Is that port unblocked in your windows firewall? Monday, December 11, 2006 4:16 PM Reply | Quote All replies 2 Sign in to vote What port are you listening on? Is that port unblocked in your windows firewall? Monday, December 11, 2006 4:16 PM Reply | Quote 1 Sign in to failed to connect vote Yes, my firewall was blocking it. I got around it and it fixed the problem. Proposed as answer by raucci2000 Friday, May 23, 2014 1:28 PM Monday, December 11, 2006 6:11 PM Reply | Quote 0 Sign in to vote which port ? Friday, April 06, 2007 12:45 PM Reply | Quote 0 Sign in to vote Hi, Evn i am gettin the same error. Can u tell me wat is the fix. Friday, April 13, 2007 9:29 AM Reply | Quote 0 Sign in to vote I am getting the same error - but only when I change my return type to a cutom object. CLR types work fine - i.e. an IList of Strings, but not, say, MyResponseObj. I'm running the asp.net development server on port 1212, with a wsHttpBinding. Like I said, the problem seems to be with the return type which is marked up with the DataContract - DataMember tags, like my other custom objects that work fine as input objects. I am able to pass in an arbitrarily complex object of custom types no problem - but the server tanks with a custom return type. Any sugges
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up No connection could be made because the target machine actively refused it? up vote 136 down vote favorite 26 Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream() ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.PreAuthenticate = true; request.Credentials = networkCredential(sla); request.Method = WebRequestMethods.Http.Post; request.ContentType = "application/x-www-form-urlencoded"; request.Timeout = v_Timeout * 1000; if (url.IndexOf("asmx") > 0 && parStartIndex > 0) { AppHelper.Logger.Append("#############" + sla.ServiceName); using (StreamWriter reqWriter = new StreamWriter(request.GetRequestStream())) { while (true) { int index01 = parList.Length; int index02 = parList.IndexOf("="); if (parList.IndexOf("&") > 0) index01 = parList.IndexOf("&"); string parName = parList.Substring(0, index02); string parValue = parList.Substring(