Home
%3CLINGO-SUB%20id%3D%22lingo-sub-311195%22%20slang%3D%22en-US%22%3Ew3wp.exe%20crashes%20with%20C0000005%20at%20HttpResponse.Flush%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-311195%22%20slang%3D%22en-US%22%3E%3CP%3Ew3wp.exe%20crashes%20with%20C0000005%20at%20HttpResponse.Flush.%20Call%20Stack%20as%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E00%20(Inline%20Function)%20--------%60--------%20iiscore!W3_CONTEXT_BASE%3A%3AQueryW3Context%26nbsp%3B%3CBR%20%2F%3E01%2000000061%605688e0b0%2000007ffc%603db55718%20iiscore!NOTIFICATION_SEND_RESPONSE%3A%3AGetHeadersBeingSent(void)%2B0xa%26nbsp%3B%3CBR%20%2F%3E02%2000000061%605688e0e0%2000007ffc%603db542d8%20authmd5!AUTH_PROVIDER%3A%3ADoWork(unsigned%20long%20dwRequestNotification%20%3D%200x20000000%2C%20class%20IHttpContext%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x64%26nbsp%3B%3CBR%20%2F%3E03%20(Inline%20Function)%20--------%60--------%20authmd5!RequestDoWork%2B0x10%26nbsp%3B%3CBR%20%2F%3E04%2000000061%605688e220%2000007ffc%603e419c1b%20authmd5!CIISHttpModule%3A%3AOnSendResponse(class%20IHttpContext%20*%20pHttpContext%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20class%20ISendResponseProvider%20*%20pProvider%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E)%2B0x14%26nbsp%3B%3CBR%20%2F%3E05%2000000061%605688e260%2000007ffc%603e412908%20iiscore!NOTIFICATION_CONTEXT%3A%3ARequestDoWork(class%20CHttpModule%20*%20pCHttpModule%20%3D%200x0000005d%6009b095e8%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpCompletionInfo2%20*%20pCompletion%20%3D%200x00000000%6000000000%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0xb1%26nbsp%3B%3CBR%20%2F%3E06%2000000061%605688e2a0%2000007ffc%603e4119a6%20iiscore!NOTIFICATION_CONTEXT%3A%3ACallModulesInternal(int%20fCompletion%20%3D%200n0%2C%20unsigned%20long%20cbCompletion%20%3D%200%2C%20HRESULT%20hrCompletionStatus%20%3D%200x00000000%2C%20unsigned%20long%20dwCompletedOperation%20%3D%200%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x198%26nbsp%3B%3CBR%20%2F%3E07%2000000061%605688e3b0%2000007ffc%603e41b517%20iiscore!NOTIFICATION_CONTEXT%3A%3ACallModules(int%20fCompletion%20%3D%200n955466581%2C%20unsigned%20long%20cbCompletion%20%3D%201%2C%20HRESULT%20hrCompletionStatus%20%3D%200x00000001%2C%20unsigned%20long%20dwCompletedOperation%20%3D%200%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x36%26nbsp%3B%3CBR%20%2F%3E08%2000000061%605688e410%2000007ffc%603e41b2dc%20iiscore!NOTIFICATION_SEND_RESPONSE%3A%3ADoWork(unsigned%20long%20cbCompletion%20%3D%200%2C%20HRESULT%20hrCompletionStatus%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20unsigned%20long%20dwCompletedOperation%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20fCompletion%20%3D%200n0)%2B0x87%26nbsp%3B%3CBR%20%2F%3E09%2000000061%605688e490%2000007ffc%603e41bdfa%20iiscore!W3_CONTEXT_BASE%3A%3AStartNotificationLoop(class%20NOTIFICATION_CONTEXT%20*%20pNotificationContext%20%3D%200x00000061%6055fb09e0%2C%20int%20fForceSynchronous%20%3D%200n1)%2B0x94%26nbsp%3B%3CBR%20%2F%3E0a%2000000061%605688e4d0%2000007ffc%603e41f5df%20iiscore!W3_RESPONSE%3A%3AFlush(int%20fAsync%20%3D%200n0%2C%20int%20fMoreData%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20class%20W3_CONTEXT_BASE%20*%20pW3BaseContext%20%3D%200x0000005d%6009d7f410%2C%20unsigned%20long%20*%20pcbSent%20%3D%200x00000061%605688e628%2C%20int%20*%20pfCompletionExpected%20%3D%200x00000061%605688e610)%2B0x30a%26nbsp%3B%3CBR%20%2F%3E0b%2000000061%605688e560%2000007ffc%603e10e141%20iiscore!RESPONSE_CONTEXT%3A%3AFlush(int%20fAsync%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20fMoreData%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20unsigned%20long%20*%20pcbSent%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20*%20pfCompletionExpected%20%3D%200x00000061%605688e610)%2B0x23%26nbsp%3B%3CBR%20%2F%3E0c%2000000061%605688e5a0%2000007ffc%601ab8521f%20webengine4!W3_MGD_HANDLER%3A%3AExplicitFlush(int%20fAsync%20%3D%200n955538661%2C%20int%20*%20pfCompletedSynchronously%20%3D%200x00000000%6000000000)%2B0x9a%26nbsp%3B%3CBR%20%2F%3E0d%2000000061%605688e610%2000007ffc%601ac8b130%20System_Web_ni!DomainNeutralILStubClass.IL_STUB_PInvoke(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x8f%3CBR%20%2F%3E0e%2000000061%605688e6f0%2000007ffc%601abb9db0%20System_Web_ni!System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x20%26nbsp%3B%3CBR%20%2F%3E0f%2000000061%605688e730%2000007ffc%601abf4fd0%20System_Web_ni!System.Web.HttpResponse.Flush(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0xc0%26nbsp%3B%3CBR%20%2F%3E10%2000000061%605688e790%2000007ffc%6038569086%20System_Web_ni!System.Web.HttpWriter.WriteFromStream(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0xa0%26nbsp%3B%3CBR%20%2F%3E11%2000000061%605688e7f0%2000007ffc%6038bd1d28%20mscorlib_ni!System.IO.Stream.%3CBEGINWRITEINTERNAL%3Eb__11(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x46%26nbsp%3B%3C%2FHRESULT%3E%3C%2FBEGINWRITEINTERNAL%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20lot%20C0000005%20AccessViolationException%20is%20caused%20by%20heap%20corruption%20but%20this%20one%20is%20not.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20problem%20is%20caused%20by%20that%20some%20other%20threads%20manipulated%20the%20response%20during%20the%20response%20flush%20and%20caused%20object%20no%20longer%20exists%2C%20or%20holding%20the%20objects%20so%20Response.Flush%20cannot%20access%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20best%20to%20identify%20what%20exactly%20caused%20the%20problem%20is%20to%20capture%20a%20crash%20dump%20and%20examine%20each%20thread's%20call%20stack.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-311195%22%20slang%3D%22en-US%22%3E%3CP%3Ew3wp.exe%20crashes%20with%20C0000005%20at%20HttpResponse.Flush.%20Call%20Stack%20as%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E00%20(Inline%20Function)%20--------%60--------%20iiscore!W3_CONTEXT_BASE%3A%3AQueryW3Context%26nbsp%3B%3CBR%20%2F%3E01%2000000061%605688e0b0%2000007ffc%603db55718%20iiscore!NOTIFICATION_SEND_RESPONSE%3A%3AGetHeadersBeingSent(void)%2B0xa%26nbsp%3B%3CBR%20%2F%3E02%2000000061%605688e0e0%2000007ffc%603db542d8%20authmd5!AUTH_PROVIDER%3A%3ADoWork(unsigned%20long%20dwRequestNotification%20%3D%200x20000000%2C%20class%20IHttpContext%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x64%26nbsp%3B%3CBR%20%2F%3E03%20(Inline%20Function)%20--------%60--------%20authmd5!RequestDoWork%2B0x10%26nbsp%3B%3CBR%20%2F%3E04%2000000061%605688e220%2000007ffc%603e419c1b%20authmd5!CIISHttpModule%3A%3AOnSendResponse(class%20IHttpContext%20*%20pHttpContext%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20class%20ISendResponseProvider%20*%20pProvider%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E)%2B0x14%26nbsp%3B%3CBR%20%2F%3E05%2000000061%605688e260%2000007ffc%603e412908%20iiscore!NOTIFICATION_CONTEXT%3A%3ARequestDoWork(class%20CHttpModule%20*%20pCHttpModule%20%3D%200x0000005d%6009b095e8%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpCompletionInfo2%20*%20pCompletion%20%3D%200x00000000%6000000000%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0xb1%26nbsp%3B%3CBR%20%2F%3E06%2000000061%605688e2a0%2000007ffc%603e4119a6%20iiscore!NOTIFICATION_CONTEXT%3A%3ACallModulesInternal(int%20fCompletion%20%3D%200n0%2C%20unsigned%20long%20cbCompletion%20%3D%200%2C%20HRESULT%20hrCompletionStatus%20%3D%200x00000000%2C%20unsigned%20long%20dwCompletedOperation%20%3D%200%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x198%26nbsp%3B%3CBR%20%2F%3E07%2000000061%605688e3b0%2000007ffc%603e41b517%20iiscore!NOTIFICATION_CONTEXT%3A%3ACallModules(int%20fCompletion%20%3D%200n955466581%2C%20unsigned%20long%20cbCompletion%20%3D%201%2C%20HRESULT%20hrCompletionStatus%20%3D%200x00000001%2C%20unsigned%20long%20dwCompletedOperation%20%3D%200%2C%20class%20W3_CONTEXT_BASE%20*%20pRequestContext%20%3D%200x0000005d%6009d7f410%2C%20class%20IHttpEventProvider%20*%20pRequestOutput%20%3D%200x00000061%6055fb0a68)%2B0x36%26nbsp%3B%3CBR%20%2F%3E08%2000000061%605688e410%2000007ffc%603e41b2dc%20iiscore!NOTIFICATION_SEND_RESPONSE%3A%3ADoWork(unsigned%20long%20cbCompletion%20%3D%200%2C%20HRESULT%20hrCompletionStatus%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20unsigned%20long%20dwCompletedOperation%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20fCompletion%20%3D%200n0)%2B0x87%26nbsp%3B%3CBR%20%2F%3E09%2000000061%605688e490%2000007ffc%603e41bdfa%20iiscore!W3_CONTEXT_BASE%3A%3AStartNotificationLoop(class%20NOTIFICATION_CONTEXT%20*%20pNotificationContext%20%3D%200x00000061%6055fb09e0%2C%20int%20fForceSynchronous%20%3D%200n1)%2B0x94%26nbsp%3B%3CBR%20%2F%3E0a%2000000061%605688e4d0%2000007ffc%603e41f5df%20iiscore!W3_RESPONSE%3A%3AFlush(int%20fAsync%20%3D%200n0%2C%20int%20fMoreData%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20class%20W3_CONTEXT_BASE%20*%20pW3BaseContext%20%3D%200x0000005d%6009d7f410%2C%20unsigned%20long%20*%20pcbSent%20%3D%200x00000061%605688e628%2C%20int%20*%20pfCompletionExpected%20%3D%200x00000061%605688e610)%2B0x30a%26nbsp%3B%3CBR%20%2F%3E0b%2000000061%605688e560%2000007ffc%603e10e141%20iiscore!RESPONSE_CONTEXT%3A%3AFlush(int%20fAsync%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20fMoreData%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20unsigned%20long%20*%20pcbSent%20%3D%20%3CVALUE%20unavailable%3D%22%22%20error%3D%22%22%3E%2C%20int%20*%20pfCompletionExpected%20%3D%200x00000061%605688e610)%2B0x23%26nbsp%3B%3CBR%20%2F%3E0c%2000000061%605688e5a0%2000007ffc%601ab8521f%20webengine4!W3_MGD_HANDLER%3A%3AExplicitFlush(int%20fAsync%20%3D%200n955538661%2C%20int%20*%20pfCompletedSynchronously%20%3D%200x00000000%6000000000)%2B0x9a%26nbsp%3B%3CBR%20%2F%3E0d%2000000061%605688e610%2000007ffc%601ac8b130%20System_Web_ni!DomainNeutralILStubClass.IL_STUB_PInvoke(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x8f%3CBR%20%2F%3E0e%2000000061%605688e6f0%2000007ffc%601abb9db0%20System_Web_ni!System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x20%26nbsp%3B%3CBR%20%2F%3E0f%2000000061%605688e730%2000007ffc%601abf4fd0%20System_Web_ni!System.Web.HttpResponse.Flush(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0xc0%26nbsp%3B%3CBR%20%2F%3E10%2000000061%605688e790%2000007ffc%6038569086%20System_Web_ni!System.Web.HttpWriter.WriteFromStream(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0xa0%26nbsp%3B%3CBR%20%2F%3E11%2000000061%605688e7f0%2000007ffc%6038bd1d28%20mscorlib_ni!System.IO.Stream.%3CBEGINWRITEINTERNAL%3Eb__11(%3CHRESULT%200x80004001%3D%22%22%3E)%2B0x46%26nbsp%3B%3C%2FHRESULT%3E%3C%2FBEGINWRITEINTERNAL%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FHRESULT%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FVALUE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20lot%20C0000005%20AccessViolationException%20is%20caused%20by%20heap%20corruption%20but%20this%20one%20is%20not.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20problem%20is%20caused%20by%20that%20some%20other%20threads%20manipulated%20the%20response%20during%20the%20response%20flush%20and%20caused%20object%20no%20longer%20exists%2C%20or%20holding%20the%20objects%20so%20Response.Flush%20cannot%20access%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20best%20to%20identify%20what%20exactly%20caused%20the%20problem%20is%20to%20capture%20a%20crash%20dump%20and%20examine%20each%20thread's%20call%20stack.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-311195%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehuanchix%40microsoft.com%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

w3wp.exe crashes with C0000005 at HttpResponse.Flush. Call Stack as below.

 

 

00 (Inline Function) --------`-------- iiscore!W3_CONTEXT_BASE::QueryW3Context 
01 00000061`5688e0b0 00007ffc`3db55718 iiscore!NOTIFICATION_SEND_RESPONSE::GetHeadersBeingSent(void)+0xa 
02 00000061`5688e0e0 00007ffc`3db542d8 authmd5!AUTH_PROVIDER::DoWork(unsigned long dwRequestNotification = 0x20000000, class IHttpContext * pRequestContext = 0x0000005d`09d7f410, class IHttpEventProvider * pRequestOutput = 0x00000061`55fb0a68)+0x64 
03 (Inline Function) --------`-------- authmd5!RequestDoWork+0x10 
04 00000061`5688e220 00007ffc`3e419c1b authmd5!CIISHttpModule::OnSendResponse(class IHttpContext * pHttpContext = <Value unavailable error>, class ISendResponseProvider * pProvider = <Value unavailable error>)+0x14 
05 00000061`5688e260 00007ffc`3e412908 iiscore!NOTIFICATION_CONTEXT::RequestDoWork(class CHttpModule * pCHttpModule = 0x0000005d`09b095e8, class W3_CONTEXT_BASE * pRequestContext = 0x0000005d`09d7f410, class IHttpCompletionInfo2 * pCompletion = 0x00000000`00000000, class IHttpEventProvider * pRequestOutput = 0x00000061`55fb0a68)+0xb1 
06 00000061`5688e2a0 00007ffc`3e4119a6 iiscore!NOTIFICATION_CONTEXT::CallModulesInternal(int fCompletion = 0n0, unsigned long cbCompletion = 0, HRESULT hrCompletionStatus = 0x00000000, unsigned long dwCompletedOperation = 0, class W3_CONTEXT_BASE * pRequestContext = 0x0000005d`09d7f410, class IHttpEventProvider * pRequestOutput = 0x00000061`55fb0a68)+0x198 
07 00000061`5688e3b0 00007ffc`3e41b517 iiscore!NOTIFICATION_CONTEXT::CallModules(int fCompletion = 0n955466581, unsigned long cbCompletion = 1, HRESULT hrCompletionStatus = 0x00000001, unsigned long dwCompletedOperation = 0, class W3_CONTEXT_BASE * pRequestContext = 0x0000005d`09d7f410, class IHttpEventProvider * pRequestOutput = 0x00000061`55fb0a68)+0x36 
08 00000061`5688e410 00007ffc`3e41b2dc iiscore!NOTIFICATION_SEND_RESPONSE::DoWork(unsigned long cbCompletion = 0, HRESULT hrCompletionStatus = <Value unavailable error>, unsigned long dwCompletedOperation = <Value unavailable error>, int fCompletion = 0n0)+0x87 
09 00000061`5688e490 00007ffc`3e41bdfa iiscore!W3_CONTEXT_BASE::StartNotificationLoop(class NOTIFICATION_CONTEXT * pNotificationContext = 0x00000061`55fb09e0, int fForceSynchronous = 0n1)+0x94 
0a 00000061`5688e4d0 00007ffc`3e41f5df iiscore!W3_RESPONSE::Flush(int fAsync = 0n0, int fMoreData = <Value unavailable error>, class W3_CONTEXT_BASE * pW3BaseContext = 0x0000005d`09d7f410, unsigned long * pcbSent = 0x00000061`5688e628, int * pfCompletionExpected = 0x00000061`5688e610)+0x30a 
0b 00000061`5688e560 00007ffc`3e10e141 iiscore!RESPONSE_CONTEXT::Flush(int fAsync = <Value unavailable error>, int fMoreData = <Value unavailable error>, unsigned long * pcbSent = <Value unavailable error>, int * pfCompletionExpected = 0x00000061`5688e610)+0x23 
0c 00000061`5688e5a0 00007ffc`1ab8521f webengine4!W3_MGD_HANDLER::ExplicitFlush(int fAsync = 0n955538661, int * pfCompletedSynchronously = 0x00000000`00000000)+0x9a 
0d 00000061`5688e610 00007ffc`1ac8b130 System_Web_ni!DomainNeutralILStubClass.IL_STUB_PInvoke(<HRESULT 0x80004001>)+0x8f
0e 00000061`5688e6f0 00007ffc`1abb9db0 System_Web_ni!System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush(<HRESULT 0x80004001>)+0x20 
0f 00000061`5688e730 00007ffc`1abf4fd0 System_Web_ni!System.Web.HttpResponse.Flush(<HRESULT 0x80004001>)+0xc0 
10 00000061`5688e790 00007ffc`38569086 System_Web_ni!System.Web.HttpWriter.WriteFromStream(<HRESULT 0x80004001>)+0xa0 
11 00000061`5688e7f0 00007ffc`38bd1d28 mscorlib_ni!System.IO.Stream.<BeginWriteInternal>b__11(<HRESULT 0x80004001>)+0x46 

 

 

A lot C0000005 AccessViolationException is caused by heap corruption but this one is not.

 

The problem is caused by that some other threads manipulated the response during the response flush and caused object no longer exists, or holding the objects so Response.Flush cannot access it.

 

The best to identify what exactly caused the problem is to capture a crash dump and examine each thread's call stack.