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

远程主机强迫关闭了一个现有的连接。

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

异常详细信息: System.Net.Sockets.SocketException: 远程主机强迫关闭了一个现有的连接。

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[SocketException (0x2746): 远程主机强迫关闭了一个现有的连接。]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +226

[IOException: 无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。。]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +811
   System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) +129
   System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) +369

[WebException: 基础连接已经关闭: 接收时发生错误。]
   System.Net.HttpWebRequest.GetResponse() +1751
   CDNAPI.API.getHtmlfromUrl(String url) +132
   CDNAPI.API.getUserConfigXml(String domain) +696
   CDNAPI.API.getDomain(String suffix, String parm) +290
   CDNAPI.API.getSysDomain(String parm) +100
   CDNAPI.API.RunAPI(String str) +755
   NiuCDN.NiuCDN.ReplaceFunction(Match m) +772
   System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) +235
   System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) +72
   NiuCDN.NiuCDN.ReplaceParamet(String str) +5169
   NiuCDN.NiuCDN.Page_Load(Object sender, EventArgs e) +7771
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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