System.Runtime.InteropServices.COMException 函数不正确。 (HRESULT 异常:0x80070001)
我在 ASP.net 中有一个 Asynchronus IHttpHandler,并且在 ELMAH 捕获中看到此异常错误。
Windows Server 2008 R2 网络版 IIS 7.5 网络平台 .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)
I have an Asynchronus IHttpHandler in ASP.net and I am seeing this exception error in my ELMAH capture.
Windows Server 2008 R2 Web Edition
IIS 7.5
ASP.NET
.NET 4.0 Runtime
Running HTTP on the site.
Could anyone shed some light on this one? Google lists some results from 2008 or so regarding a bug in .NET 2.0 about HTTP disconnecting during the Read() function of the request body.
Stack Trace
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 IIS7 的底层非托管层 (webengine.dll) 报告的错误。经过一番谷歌搜索后,最相关的线程似乎表明这是由于网卡驱动程序配置而导致的错误(TCP Offloading )。
请参阅:与远程主机。错误代码为0x80070001
This is an error reported by underlying unmanaged layers of IIS7 (webengine.dll). After some googling, the most relevant thread seems to indicate this is an error due to the network card driver configuration (TCP Offloading).
See this: An error occurred while communicating with the remote host. The error code is 0x80070001