Logs Filling Up With: An error occurred communication with the remote host

9

We are trying to understand what is happening with this error, is this just users disconnecting from the site?

System.Web.HttpException  An error occurred while communicating with the remote host. The error code is 0x800703E3.  
System.Runtime.InteropServices.COMException  The I/O operation has been aborted because of either a thread exit or an application request. 
(Exception from HRESULT: 0x800703E3)  StackTrace:    
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)     
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()    
at System.Web.HttpResponse.Flush(Boolean finalFlush)     
at System.Web.HttpWriter.WriteFromStream(Byte[] data, Int32 offset, Int32 size)     
at System.Web.Mvc.FileStreamResult.WriteFile(HttpResponseBase response)     
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c <InvokeActionResultWithFilters>b__19()     
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)    
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)     
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)     
at System.Web.Mvc.Controller.ExecuteCore()    
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)    
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()   
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()  
at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
iis-7
asked on Stack Overflow May 23, 2012 by user351711 • edited May 14, 2018 by Cœur

1 Answer

5

Yes, this error comes up when the connection to the user is lost. They might have closed the browser or been disconnected (or the request failed or was canceled).

The answer to a similar question recommends checking Response.IsClientConnected before calling Flush()

You might not even need to explicitly call Flush()

answered on Stack Overflow Jul 11, 2012 by David J • edited May 23, 2017 by Community

User contributions licensed under CC BY-SA 3.0