Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I am trying to use methods in my web service and when I try to do so it return this error:

2013/02/04 08:23:09 AM ==> Unable to connect to the remote server System.Net.Sockets.SocketException (0x80004005): 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 196.30.46.204:86
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

in my web service.

I checked that my firewall and anti-virus is disabled and that I can visit the site through my browser.

Please help ?
Posted
Updated 3-Feb-13 20:18pm
v2
Comments
Sergey Alexandrovich Kryukov 4-Feb-13 1:57am    
Not enough information.
—SA
Bdrap 4-Feb-13 2:28am    
all methods in my web service returns a string.
so I call the method like this:
string Message = Stock("ItemCode","ItemName","Quantity");

and after that it goes directly into my catch.

1 solution

If its a external site you do not have specify the port number in your URL. It works fine now.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900