【问题标题】:The I/O operation has been aborted because of either a thread exit or an application request由于线程退出或应用程序请求,I/O 操作已中止
【发布时间】:2011-09-07 19:45:09
【问题描述】:

我正在一个高流量网站上运行一些 WCF net.tcp 服务。 在我当地的环境中,一切都按预期进行。 在生产环境中,网站运行几分钟,然后服务抛出异常。 当我停止并重新启动服务网站时,它会再次运行几分钟。

详情如下:

传输数据时发生 TCP 错误(995:I/O 操作已因线程退出或应用程序请求而中止)。

System.ServiceModel.Channels.SocketConnection.EndRead() System.ServiceModel.Channels.TracingConnection.EndRead() System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(对象状态) System.ServiceModel.Channels.TracingConnection.TracingConnectionState.ExecuteCallback() System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult,Int32 错误,Int32 bytesRead) System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 错误,UInt32 bytesRead,NativeOverlapped* nativeOverlapped) System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

由于线程退出或应用程序请求,I/O 操作已中止

【问题讨论】:

    标签: wcf


    【解决方案1】:

    我在 Win8kR2SP1Web 上看到了同样的问题:

    System.Runtime.InteropServices.COMException (0x800703E3): The I/O operation has been     aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3)
    An error occurred while communicating with the remote host. The error code is 0x800703E3.
    The I/O operation has been aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3)
    
    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.FillInFormCollection() 
    at System.Web.HttpRequest.get_Form() 
    at System.Web.Mvc.HttpRequestExtensions.GetHttpMethodOverride(HttpRequestBase request) 
    at System.Web.Mvc.AcceptVerbsAttribute.IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) 
    at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate) 
    at System.Web.Mvc.ActionMethodSelector.RunSelectionFilters(ControllerContext controllerContext, List`1 methodInfos) 
    at System.Web.Mvc.ReflectedControllerDescriptor.FindAction(ControllerContext controllerContext, String actionName) 
    at System.Web.Mvc.ControllerActionInvoker.FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, String actionName) 
    at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) 
    at System.Web.Mvc.Controller.ExecuteCore() 
    at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) 
    at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() 
    at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() 
    at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() 
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionSt ep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    虽然是 1 年来的第一次......

    【讨论】:

    • 第二次!我认为这是 IIS 中的一个错误
    猜你喜欢
    • 1970-01-01
    • 2023-03-23
    • 2014-02-17
    • 2014-07-03
    • 1970-01-01
    • 1970-01-01
    • 2022-01-23
    • 2021-01-02
    相关资源
    最近更新 更多