Blazor app crashes when debugging after windows secutiry updates

Rossend Bruch 255 Reputation points
2023-03-15T11:27:48.58+00:00

Afert 2023 march 14 updates my app stop debugging. If I start it without debugging it works ok, if I start it debugging it crashes at startup. The error is the following:

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)

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
{count} votes

Accepted answer
  1. Eren Özdemir 120 Reputation points
    2023-03-16T07:50:53.73+00:00

    I am able to use breakpoints if I add them after running the project.

    9 people found this answer helpful.

15 additional answers

Sort by: Most helpful
  1. Ryan D 0 Reputation points
    2023-03-17T19:10:22.28+00:00

    Our team installed the latest Chrome-beta and let the Blazor WASM app launch that instead and it seems to work again with breakpoints set prior to starting the application.
    It's a browser issue more than a VS one.

    0 comments No comments

  2. Sandra Anderson 46 Reputation points
    2023-03-17T23:16:09.1333333+00:00

    I'm also experiencing this issue. Hopefully it doesn't take too long for Microsoft to provide a fix - I've already wasted over a day trying to work out why this was happening and searching for a solution.


  3. Jack Della 0 Reputation points
    2023-03-20T04:27:35.7933333+00:00

    I'm having this issue to, I can only run my project when I select 'Start with debugging'


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.