Hey am getting the following error, while invoking the webservice from my application , it is working perfectly on another machine but not workin gin webserver...
Source : System
Exception : System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed
because connected host has failed to respond XXXXXX X X X X X X
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()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at CfisService.ConduitUploadService.UploadConduitTransaction(String passCode, String userName, Int32 committeeID)
at Registrant_Upload.SavePassCodeContributions()
Inner Exception :
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 12.178.75.75: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)
Can you telnet on port 80 to the remote server? From a different machine to the remote system, type telnet x.x.x.x 80 (replace x.x.x.x) with the actual ip address. could be a windows firewall issue.
Shalem, have you solve your ptoblem? I'm having the same problem accessing a web service in windows service. i am getting when consuming web service in a windows service.
Error:-
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)
Shalem
3 Posts
System.Net.WebException: Unable to connect to the remote server
Feb 28, 2010 12:09 PM|LINK
Hey am getting the following error, while invoking the webservice from my application , it is working perfectly on another machine but not workin gin webserver...
Source : System
Exception : System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond XXXXXX X X X X X X
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()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at CfisService.ConduitUploadService.UploadConduitTransaction(String passCode, String userName, Int32 committeeID)
at Registrant_Upload.SavePassCodeContributions()
Inner Exception :
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 12.178.75.75: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)
steve schofi...
5681 Posts
MVP
Moderator
Re: System.Net.WebException: Unable to connect to the remote server
Mar 01, 2010 09:12 AM|LINK
Can you telnet on port 80 to the remote server? From a different machine to the remote system, type telnet x.x.x.x 80 (replace x.x.x.x) with the actual ip address. could be a windows firewall issue.
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
amns
2 Posts
Re: System.Net.WebException: Unable to connect to the remote server
Sep 28, 2010 05:16 PM|LINK
Shalem, have you solve your ptoblem? I'm having the same problem accessing a web service over internet..
If've tried disabled the firewall and anti virus, but nothing.
Thanks
vinayvsu
3 Posts
Re: System.Net.WebException: Unable to connect to the remote server
Oct 01, 2010 07:13 AM|LINK
Shalem, have you solve your ptoblem? I'm having the same problem accessing a web service in windows service. i am getting when consuming web service in a windows service.
Error:-
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)
---> at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Testmachone.MachWebRef.SimCardWS.ProvisionImsiCard(String MsMin, String MsEsn, String CardId, String UserId, String Password, String MscId, String BId, String NewValue, ActionTypes Command, String MDN, String COS, String MIP_KEY, String MEID, String RADIUSPassword, String IMSI, Boolean PrePaid)
if you have a solution please suggest me.
Thanks
Vinay