[英]Error on ASP.NET Websites. Connection Timeout
我突然在幾個站點上都遇到了此錯誤,我不確定是什么問題。 這些網站已經運行了2年多了,這是我第一次看到此錯誤。
“連接嘗試失敗,因為一段時間后連接方未正確響應,或者連接建立失敗,因為連接的主機未能響應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
跟蹤告訴我它與套接字有關,但是沒有套接字編程。
您不是直接使用套接字,而是要發出一個在內部使用套接字的遠程Web請求,因為這是大多數平台上進行網絡連接的方式。 由於存在網絡問題,因此您會在一天結束時看到套接字異常。
該錯誤表示為“我無法打開與遠程服務器的連接。請檢查地址,確保它正在偵聽相應的端口,並確保我們沒有進行防火牆保護。”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.