微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net – System.Runtime.InteropServices.COMException功能不正确. (HRESULT异常:0x80070001)

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

Windows Server 2008 R2 Web Edition
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[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,IMessageSink replySink)

解决方法

这是IIS7的基础非托管层(webengine.dll)报告的错误.在一些谷歌搜索后,最相关的线程似乎表明这是由于网卡驱动程序配置( TCP Offloading)的错误.

见:An error occurred while communicating with the remote host. The error code is 0x80TCP Offloading1

原文地址:https://www.jb51.cc/aspnet/251046.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐