我在ASP.net中有一个Asynchronus IHttpHandler,我在ELMAH捕获中看到了这个异常错误。
Windows Server 2008 R2网络版 IIS 7.5 ASP.NET .NET 4.0运行时 在网站上运行HTTP。
有人能对这一个有所了解吗?谷歌在2008年左右列出了一些关于.NET 2.0中关于在请求体的Read()函数期间断开HTTP连接的错误的结果。
System.Web.HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070001. ---> System.Runtime.InteropServices.COMException (0x80070001): Incorrect function. (Exception from HRESULT: 0x80070001)
Server stack trace:
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ReadEntityCoreSync(Byte[] buffer, Int32 offset, Int32 size)
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at MyHandler.ProcessRequest(HttpContext context)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
答案 0 :(得分:8)
这是由IIS7的基础非托管层(webengine.dll)报告的错误。经过一些谷歌搜索后,最相关的线程似乎表明这是一个错误,因为网卡驱动程序配置(TCP Offloading)。
请参阅:An error occurred while communicating with the remote host. The error code is 0x80070001