【发布时间】:2011-11-27 13:52:04
【问题描述】:
我在我的项目中使用 elmah -> Elmah.axd 来查找错误。
有这样的错误:
System.Web.HttpException: The remote host closed the connection. The error code is 0x800703E3.
Generated: Sun, 27 Nov 2011 13:06:13 GMT
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException (0x800703E3): The remote host closed the connection. The error code is 0x800703E3.
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.TransmitFile(String filename, Int64 offset, Int64 size, Boolean isImpersonating, Boolean supportsLongTransmitFile)
at System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)
at SalarSoft.Utility.SP1.ResumeDownload.ProcessDownload(String fileName, String headerFileName)
at NiceFileExplorer.en.Download.DownloadFile_SalarSoft(String fileName)
at NiceFileExplorer.en.Download.GoForDownloadFile(String filepath)
at NiceFileExplorer.en.Download.MainCodes()
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
在使用网站期间,我们没有看到此错误。
但是 elmah 多次将此错误发送给我。
这个错误是什么意思,我该如何解决?
编辑 1
{我的网站用于下载移动文件,有时它真的很忙}
{我使用的是 windows server 2008 r2-> 远程访问}
评论后编辑 2
今天的一些windows信息和警告(没有错误)日志如下:
警告
超出了为应用程序池“ASP.NET 4.0(集成)”提供服务的进程 关闭期间的时间限制。进程 ID 为“6764”。
警告
为应用程序池“ASP.NET 4.0”提供服务的工作进程“3232” (集成)'未能停止协议'http'的侦听器通道 分配的时间。数据字段包含错误号。
警告
超出了为应用程序池“ASP.NET 4.0(集成)”提供服务的进程 关闭期间的时间限制。进程 ID 为“3928”。
【问题讨论】:
-
你需要找出远程主机关闭连接的原因。
-
您必须在服务器上查看。例如,服务器上的 Windows 事件日志;也许是 IIS 日志。
-
@John Saunders 嗨,感谢您的评论,请参阅我的编辑 2。
-
windows 日志似乎没有显示这些错误。为什么?
-
如果服务器吃掉它们,它可能不会显示异常:
try{...}catch{}。另外,请尝试在服务器上打开ASP.NET Health Monitoring。
标签: c# asp.net elmah windows-server-2008-r2