Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I developed one project for sending sms.

It worked properly when I ran it in local iis, but when I uploaded the project in my hosting server and sent the message using web page, I got an error:

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host 174.123.206.215: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.GetResponse()
   at sendSMS.Button1_Click(Object sender, EventArgs e)  


Please help me with proper solution.
Thank you all in Advance.
Posted
Updated 11-Jul-11 21:33pm
v4
Comments
harish85 12-Jul-11 3:04am    
ping that ip from your system were you are using browser to check connectivity.
Dalek Dave 12-Jul-11 3:33am    
Edited for Grammar and Readability.

1 solution

hope this link will provide a little help
 
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