每個 .NET 應用程式都會崩潰 (AccessViolationException)

每個 .NET 應用程式都會崩潰 (AccessViolationException)

由於遇到一些問題,我剛剛重新安裝了 Windows 10。
我的電腦上的每個 .NET 應用程式都崩潰了。它打開了短暫的一秒鐘,然後立即關閉。

我認為重新安裝會有所幫助(透過 USB 使用最新的安裝程式重新分割並安裝全新安裝),但遺憾的是,事實並非如此。

我第一次在 Visual Studio 2019 和 Visual Studio 安裝程式中註意到這一點。兩者一開始就立即關閉。

查看事件檢視器,我在其中看到了一堆與 .NET 執行時間相關的錯誤,並向我顯示了 AccessViolationExceptions。

我已經被這個問題困擾了一個星期了,但我還沒有找到任何東西。

記憶體測試沒有顯示錯誤,我還更新了 BIOS 並檢查 RAM 的值是否正確,例如計時和 XMP 設定檔。一切都是正確的。

我以前沒有遇過類似的事情。從來沒有出現過這樣的問題,記憶體很好,甚至是新的。不正確的計時 fE 會導致更多應用程式崩潰,但這些應用程式運作得很好。

如果您願意,您也可以查看我的線程,其中包含大量日誌來解決該問題。線程1,線程2

這裡有一些可視化的日誌。 (從事件日誌檢視器複製並使用 deepl.com 翻譯,因為原文是德語)

Application: Microsoft.ServiceHub.Controller.exe
Framework version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception information: System.AccessViolationException
   at System.Net.ProxyChain+ProxyEnumerator.MoveNext()
   at System.Net.ServicePointManager.FindServicePoint(System.Uri, System.Net.IWebProxy, System.Net.ProxyChain ByRef, System.Net.HttpAbortDelegate ByRef, Int32 ByRef)
   at System.Net.HttpWebRequest.FindServicePoint(Boolean)
   at System.Net.HttpWebRequest.BeginGetResponse(System.AsyncCallback, System.Object)
   at System.Threading.Tasks.TaskFactory`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncImpl(System.Func`3<System.AsyncCallback,System.Object,System.IAsyncResult>, System.Func`2<System.IAsyncResult,System.__Canon>, System.Action`1<System.IAsyncResult>, System.Object, System.Threading.Tasks.TaskCreationOptions)
   at System.Net.WebRequest.<GetResponseAsync>b__78_1()
   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Application: vs_setup_bootstrapper.exe
Framework version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception information: System.AccessViolationException
   at System.Security.Cryptography.X509Certificates.X509Chain.Build(System.Security.Cryptography.X509Certificates.X509Certificate2)
   at System.Net.Security.SecureChannel.VerifyRemoteCertificate(System.Net.Security.RemoteCertValidationCallback, System.Net.Security.ProtocolToken ByRef)
   at System.Net.Security.SslState.CompleteHandshake(System.Net.Security.ProtocolToken ByRef)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(System.Net.Security.ProtocolToken, System.Net.AsyncProtocolRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[], Int32, System.Net.AsyncProtocolRequest)
   at System.Net.Security.SslState.ReadFrameCallback(System.Net.AsyncProtocolRequest)
   at System.Net.AsyncProtocolRequest.CompleteRequest(Int32)
   at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32)
   at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Net.ContextAwareResult.Complete(IntPtr)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Application: ShareX.exe
Framework version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception information: System.AccessViolationException
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean, System.Net.Sockets.Socket, System.Net.Sockets.Socket, System.Net.Sockets.Socket ByRef, System.Net.IPAddress ByRef, ConnectSocketState, System.IAsyncResult, System.Exception ByRef)
   at System.Net.ServicePoint.GetConnection(System.Net.PooledStream, System.Object, Boolean, System.Net.IPAddress ByRef, System.Net.Sockets.Socket ByRef, System.Net.Sockets.Socket ByRef)
   at System.Net.PooledStream.Activate(System.Object, Boolean, System.Net.GeneralAsyncDelegate)
   at System.Net.Connection.CompleteStartConnection(Boolean, System.Net.HttpWebRequest)
   at System.Net.Connection.CompleteStartRequest(Boolean, System.Net.HttpWebRequest, System.Net.TriState)
   at System.Net.Connection.SubmitRequest(System.Net.HttpWebRequest, Boolean)
   at System.Net.ServicePoint.SubmitRequest(System.Net.HttpWebRequest, System.String)
   at System.Net.HttpWebRequest.SubmitRequest(System.Net.ServicePoint)
   at System.Net.HttpWebRequest.GetResponse()
   at System.Net.WebClient.GetWebResponse(System.Net.WebRequest)
   at System.Net.WebClient.DownloadBits(System.Net.WebRequest, System.IO.Stream, System.Net.CompletionDelegate, System.ComponentModel.AsyncOperation)
   at System.Net.WebClient.DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)
   at System.Net.WebClient.DownloadString(System.Uri)
   at ShareX.NewsManager.GetNews()
   at ShareX.NewsManager.UpdateNews()
   at ShareX.NewsListControl.<Start>b__9_0()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

更多日誌:https://1drv.ms/u/s!Ah1ey1Vs14BXg06zzPuYhBtfgrA4?e=hpA0hZ

我感謝任何幫助和時間。先致謝!

更新:我很久以前就透過更換CPU(將其寄回)修復了這個問題,因為它確實是一個損壞的CPU。

相關內容