Server IIS has been reporting this error since updating.NET 7!

Copper Contributor

Application: w3wp.exe CoreCLR Version: 7.0.423.11508 .NET Version: 7.0.4 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack: at Microsoft.AspNetCore.Server.IIS.NativeMethods.g____PInvoke|16_0(IntPtr, Int32, Int32*) at Microsoft.AspNetCore.Server.IIS.NativeMethods.http_flush_response_bytes(Microsoft.AspNetCore.Server.IIS.Core.NativeSafeHandle, Boolean, Boolean ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOEngine+AsyncFlushOperation.InvokeOperation(Int32 ByRef, Int32 ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOOperation.Invoke() at Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOEngine.Run(Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOOperation) at Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOEngine.FlushAsync(Boolean) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__157.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__157, Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](d__157 ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ProduceStart(Boolean) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__164.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__164, Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](d__164 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__164, Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](d__164 ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ProduceEndAwaited() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1+d__2[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1+d__2[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](d__2 ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ProcessRequestAsync() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__185.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__185, Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](d__185 ByRef) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.HandleRequest() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

1 Reply

Hi @LanceCheng,

Thanks for posting your issue here.

However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang