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

Server Error in '/' Application.

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

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: 远程主机强迫关闭了一个现有的连接。

Source Error:


Line 26: @section js {}
Line 27: @{var bigRow = Model.Where(c => c.TypeID == 5).OrderBy(c => c.Priority).ToList();var bigIndex = 0;}<div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",2,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",3,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",4,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",5,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"1",6,0);bigIndex++;}</div></div><div class="topiclist-3 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"2",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"2",2,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"2",3,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"3",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"3",2,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"3",3,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"4",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"4",2,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"5",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"6",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"6",2,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"7",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"8",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"8",2,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"8",3,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"8",4,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"9",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"10",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"10",2,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"11",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"12",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"12",2,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"13",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",2,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",3,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",4,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",5,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",6,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",7,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"14",8,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"15",1,0);bigIndex++;}</div></div><div class="topiclist-2 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"16",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"16",2,0);bigIndex++;}</div></div><div class="topiclist-1 clearfix"><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"17",1,0);bigIndex++;}</div><div class="topic">@if (bigRow.Count > bigIndex){@Html.TopicImageHtml(bigRow[bigIndex],"17",2,0);bigIndex++;}</div></div>
Line 28: @{Html.RenderAction("GetAwardWinners", "Channel");}

Source File: e:\website\mc.vancl.com\Views\Channel\channel1223.cshtml    Line: 28

Stack Trace:


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

[IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +300
   System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) +26
   System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) +265

[WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
   System.Net.HttpWebRequest.GetResponse() +6121635
   Vancl.Mobile.Channel.Tools.HttpRequestHelper.Get(String URL, String contentType) +30
   Vancl.Mobile.Channel.BLL.AnniversaryActivityBll.GetAwardWinnersList() +125
   Vancl.Mobile.Channel.Controller.ChannelController.GetAwardWinners() +233
   lambda_method(Closure , ControllerBase , Object[] ) +62
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +208
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +55
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.Mvc.<>c__DisplayClassa.<EndProcessRequest>b__9() +23
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +12
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +38
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Action action) +65
   System.Web.Mvc.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result) +71
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1067

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3095487
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +77
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +28
   System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +22
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +497
   System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName) +34
   ASP._Page_Views_Channel_channel1223_cshtml.Execute() in e:\website\mc.vancl.com\Views\Channel\channel1223.cshtml:28
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +65
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9048909
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


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