无法连接远程服务器 [英] Unable to connect remote server
本文介绍了无法连接远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我开发了一个发送短信的项目.
当我在本地iis中运行它时,它可以正常工作,但是当我将项目上载到托管服务器中并使用网页发送消息时,出现错误:
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)
请帮助我提供适当的解决方案.
谢谢大家Advance.
Please help me with proper solution.
Thank you all in Advance.
推荐答案
希望
这篇关于无法连接远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文