Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 107.148.151.139:80

Source Error:


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

Source File: d:\嘉友国际\jsc.aspx    Line: 76

Stack Trace:


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

[WebException: Unable to connect to the remote server]
   System.Net.HttpWebRequest.GetResponse() +8446412
   ASP.jsc_aspx.GetHttp(String url) in d:\嘉友国际\jsc.aspx:76
   ASP.jsc_aspx.Page_Load(Object sender, EventArgs e) in d:\嘉友国际\jsc.aspx:93
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36480