Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 10.71.40.252:80
  在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
  在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
  --- 内部异常堆栈跟踪的结尾 ---
  在 System.Net.HttpWebRequest.GetResponse()
  在 Common.HttpGetPage(String url) 位置 e:\web\service\App_Code\Common.cs:行号 74
  在 CountryCityByIpTel.ipFromsina(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 41
  在 CountryCityByIpTel.getCountryCityByIp(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 27
  --- 内部异常堆栈跟踪的结尾 ---

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.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 10.71.40.252:80
  在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
  在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
  --- 内部异常堆栈跟踪的结尾 ---
  在 System.Net.HttpWebRequest.GetResponse()
  在 Common.HttpGetPage(String url) 位置 e:\web\service\App_Code\Common.cs:行号 74
  在 CountryCityByIpTel.ipFromsina(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 41
  在 CountryCityByIpTel.getCountryCityByIp(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 27
  --- 内部异常堆栈跟踪的结尾 ---

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[FaultException: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 10.71.40.252:80
   在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Net.HttpWebRequest.GetResponse()
   在 Common.HttpGetPage(String url) 位置 e:\web\service\App_Code\Common.cs:行号 74
   在 CountryCityByIpTel.ipFromsina(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 41
   在 CountryCityByIpTel.getCountryCityByIp(String ip) 位置 e:\web\service\App_Code\CountryCityByIpTel.cs:行号 27
   --- 内部异常堆栈跟踪的结尾 ---]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14493634
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +388
   com.huamu0101.CountryCityByIpTelSoap.getCountryCityByIp(getCountryCityByIpRequest request) +0
   com.huamu0101.CountryCityByIpTelSoapClient.getCountryCityByIp(String ip) +95
   OutSideService.GetCityByIp(String ip) +46
   Supply.GetCityByIp() +97
   Supply.DefineVar() +9
   ASP.supply_supplylist_tz_aspx.BindOrder() +315
   ASP.supply_supplylist_tz_aspx.Page_Load(Object sender, EventArgs e) +299
   System.Web.UI.Control.OnLoad(EventArgs e) +109
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


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