“/”应用程序中的服务器错误。

由于目标计算机积极拒绝,无法连接。 103.147.225.34:80

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 103.147.225.34:80

源错误:


行 74:         httpWebRequest.Timeout = 999999;
行 75: 
行 76:         HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
行 77:         StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream(), Encoding.GetEncoding("GB2312"));
行 78:         string responseContent = streamReader.ReadToEnd();

源文件: d:\WebSite\1007_长恩\acticle.aspx    行: 76

堆栈跟踪:


[SocketException (0x274d): 由于目标计算机积极拒绝,无法连接。 103.147.225.34:80]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +6766426
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) +496

[WebException: 无法连接到远程服务器]
   System.Net.HttpWebRequest.GetResponse() +1322
   ASP.acticle_aspx.GetHttp(String url) in d:\WebSite\1007_长恩\acticle.aspx:76
   ASP.acticle_aspx.Page_Load(Object sender, EventArgs e) in d:\WebSite\1007_长恩\acticle.aspx:93
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2053.0