2011-09-07 483 views
0

我在高流量網站上運行一些WCF net.tcp服務。 在我的本地環境中,一切都按預期工作。 在生產環境中,網站工作幾分鐘,然後服務會拋出異常。 當我停下來並重新啓動服務網站時,它會再次運行幾分鐘。由於線程退出或應用程序請求導致I/O操作中止

這裏的細節:

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(布爾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操作已由於線程退出或應用程序請求中止

回答

0

我看到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年雖然...

+0

第二次!這是IIS中的一個錯誤,我認爲 – Softlion

相關問題