我突然在我的一些網站上發現了這個錯誤,我不確定問題出在哪裏。 這些網站已經運行了兩年多了,這是我第一次看到這個錯誤。ASP.NET網站錯誤。連接超時
「連接嘗試失敗,因爲連接的方沒有正確一段時間後響應或已建立的連接失敗,因爲連接的主機未能響應 XX.XX.XXX.XXX:80」
的堆棧跟蹤如下。
[SocketException (0x274c): 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 XX.XX.XXX.XXX:80]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +1867457
System.Net.HttpWebRequest.GetRequestStream() +13
Controls_IpConfigInner.stripConfig(String strClientIp) +136
Controls_IpConfigInner.Page_Load(Object sender, EventArgs e) +86
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
跟蹤告訴我它和插座有關,但沒有插座編程。
你檢查過防火牆嗎?也許它是開着的,並且你已經禁用了它 –
防火牆是打開的,但是我確實在服務器上運行了其他的wesbites。他們能夠連接到數據庫。 – QV1