iis-7 - 用: An error occurred communication with the remote host填满的日志

标签 iis-7

我们正在尝试了解此错误发生的情况,这仅仅是用户从站点断开连接吗?

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)  

最佳答案

是的,当与用户的连接丢失时,会出现此错误。他们可能已关闭浏览器或已断开连接(或断开请求failed or was canceled)。

The answer to a similar question建议在调用Flush()之前检查Response.IsClientConnected

might not even need to explicitly call Flush()

关于iis-7 - 用: An error occurred communication with the remote host填满的日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10714028/

相关文章:

c# - 我无法使用 C# 以编程方式设置 IIS 身份验证

.net - IIS 7 中的 ASP.Net 中缓存图像的问题

asp.net-mvc-3 - 在 IIS 7/7.5 中注册 PATCH HTTP 动词

authentication - IIS7/Win7 - 确保应用程序池标识对物理路径具有读取权限

iis-7 - 通过 MSBuild 在 Web 部署期间设置 ACL

asp.net-mvc - MVC 路由/RouteDebugger 在部署到 IIS7 时工作,但在 Cassini 中不起作用

azure - IIS 卡在 ExecuteRequestHandler 上

c# - 用户通过身份验证时文件上传失败。使用 IIS7 集成模式

c# - 为什么我得到 System.UnauthorizedAccessException Access to the path 'Google.Apis.Auth' is denied

asp.net-mvc - asp.net mvc 2 iis7 集成 windows7 vs2010 的空白页/路由问题