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,593 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. Alex Bulbazavr 20 Reputation points
    2023-03-15T18:50:01.7033333+00:00

    Downgrading the browser to prev version helps

    In my case, I made downgrade Edge from 111 version to 110.

    Edge and Chrome are both built on Chromium base, as well as a lot of other browsers, so I guess it's a Chromium issue.

    Sure will be fixed soon

    4 people found this answer helpful.

  2. Matias Arrillaga 30 Reputation points
    2023-03-16T12:08:04.0433333+00:00

    the problem is generated by the last windows update.

    it's cheked

    3 people found this answer helpful.
    0 comments No comments

  3. Stephen Ehlers 5 Reputation points
    2023-03-16T20:32:52.4033333+00:00

    Ran into the same error, I did find I had one existing breakpoint so I removed it and now it loads through Chrome.

    Its annoying but to work around it for now you can pull up the Breakpoints window in VS by going to Debug --> Windows --> Breakpoints. There is an option to disable/enable all breakpoints so you can turn them off, start your debugging session then turn them back on. Wont help for other startup related issues but if your breakpoint is hit at runtime its a viable temporary work around.

    Super not fun, hopefully this is fixed soon.

    1 person found this answer helpful.
    0 comments No comments

  4. Muhammed Cindioglu 6 Reputation points
    2023-03-16T23:17:47.82+00:00

    Working fine on Firefox but I can't work with breakpoints.

    1 person found this answer helpful.
    0 comments No comments

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.