【问题标题】:System.Runtime.InteropServices.COMException Incorrect function. (Exception from HRESULT: 0x80070001)System.Runtime.InteropServices.COMException 函数不正确。 (来自 HRESULT 的异常:0x80070001)
【发布时间】:2011-12-11 03:02:36
【问题描述】:

我在 ASP.net 中有一个异步 IHttpHandler,我在我的 ELMAH 捕获中看到了这个异常错误。

Windows Server 2008 R2 网页版 IIS 7.5 ASP.NET .NET 4.0 运行时 在网站上运行 HTTP。

有人能解释一下吗? Google 列出了 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)

【问题讨论】:

  • 完整的堆栈框架可能会有所帮助。

标签: asp.net .net iis exception


【解决方案1】:

这是 IIS7 (webengine.dll) 的底层非托管层报告的错误。经过一番谷歌搜索,最相关的线程似乎表明这是由于网卡驱动程序配置引起的错误(TCP Offloading)。

看到这个:An error occurred while communicating with the remote host. The error code is 0x80070001

【讨论】:

  • 我也得出了这个结论。
猜你喜欢
  • 2010-10-01
  • 2015-05-04
  • 1970-01-01
  • 2015-11-08
  • 1970-01-01
  • 1970-01-01
  • 2013-05-30
  • 2021-03-21
  • 2021-05-05
相关资源
最近更新 更多