Blazor 应用程序在 Windows 2023 年 3 月 14 日更新后调试时崩溃。

huangapple go评论100阅读模式
英文:

blazor application crash when debugging after windows march 14 2023 updates

问题

我的 Blazor 应用在调试时启动时崩溃。如果我不使用调试器启动它,它可以正常工作。这个问题出现在 3 月 15 号之后,那时我升级到了 .NET 6.0.15 版本。

以下是错误追踪信息:

> Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: 异常 System.AggregateException:发生了一个或多个错误。(索引超出范围。必须是非负数且小于集合的大小。(参数 'index')) ---> System.ArgumentOutOfRangeException:索引超出范围。必须是非负数且小于集合的大小。(参数 'index') 在 System.Collections.Generic.List1.get_Item(Int32 index) 在 Newtonsoft.Json.Linq.JContainer.GetItem(Int32 index) 在 Newtonsoft.Json.Linq.JArray.get_Item(Object key) 在 Microsoft.WebAssembly.Diagnostics.MonoProxy.AcceptEvent(SessionId sessionId, String method, JObject args, CancellationToken token) 在 Microsoft.WebAssembly.Diagnostics.DevToolsProxy.OnEvent(SessionId sessionId, String method, JObject args, CancellationToken token) --- 内部异常堆栈跟踪的结尾 --- 在 System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 在 System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) 在 System.Threading.Tasks.Task`1.get_Result() 在 Microsoft.WebAssembly.Diagnostics.DevToolsProxy.Run(Uri browserUri, WebSocket ideSocket)

在 Google 上搜索,没有找到相关问题的结果。尝试将 NuGet 包升级到 6.0.15 版本,但没有结果。

英文:

My blazor app crashes at startup when debugging. If I start it without the debugger it works ok. This happened on march 15 after .net 6.0.15 updates.

This is the trace:

> Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception System.AggregateException: One or more errors occurred. (Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')) ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at Newtonsoft.Json.Linq.JContainer.GetItem(Int32 index) at Newtonsoft.Json.Linq.JArray.get_Item(Object key) at Microsoft.WebAssembly.Diagnostics.MonoProxy.AcceptEvent(SessionId sessionId, String method, JObject args, CancellationToken token) at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.OnEvent(SessionId sessionId, String method, JObject args, CancellationToken token) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.Run(Uri browserUri, WebSocket ideSocket)

Googled and no results found for this issue. Tried to update nuget packages to 6.0.15 and no results.

答案1

得分: 6

有关最近的更新似乎存在问题,请参阅相关讨论

> 对我来说解决方法是从代码中删除所有断点。在调试菜单中,选择清除所有断点(CTRL+SHIFT+F9)

链接

英文:

There seems to be an issue with the recent Update, see related discussion

> A fix for me was to remove all breakpoints from code. From the Debug
> menu, choose Clear All Breakpoints (CTRL+SHIFT+F9)

Link

答案2

得分: 2

已经在最新版本的Edge中修复。
版本 111.0.1661.44(官方版本)(64位)
将您的Edge安装更新至最新版本。

英文:

Its fixed in the latest version of Edge..
Version 111.0.1661.44 (Official build) (64-bit)

Update your Edge installation to the latest version

答案3

得分: 0

这是一个糟糕的Chromium更新。Firefox可以使用。等待下一次更新或将降级。

英文:

It is a bad Chromium update. Firefox works. Waiting for next update or will downgrade.

huangapple
  • 本文由 发表于 2023年3月15日 19:44:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75744246.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定