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,395 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. Jake Rebullo 5 Reputation points
    2023-03-17T07:05:26.44+00:00

    using Chrome beta solves my problem, but still looking forward to other solution using stable chrome.

    1 person found this answer helpful.

  2. Pramod Pandav 5 Reputation points
    2023-03-17T14:40:31.42+00:00

    After updating Visual Studio to version 17.5.2, it's working now. Update it to the latest version.

    https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17.5.2

    1 person found this answer helpful.

  3. Marcel Rossi 5 Reputation points
    2023-03-17T17:00:40.0633333+00:00

    I can confirm. Same here.

    Removing all Breakpoints Chrome + Edge are working again.

    Just adding a single Breakpoint will revert it to unusable.

    I feel a bit back-kicked onto ASP-Times, where Debugging worked only by outputting Variables in between the HTML-Code. I don't know if I should lough or cry...

    Salut, Marcel

    1 person found this answer helpful.
    0 comments No comments

  4. Lufe Barreto 11 Reputation points
    2023-03-21T22:15:18.6833333+00:00

    Same happening here. Works on Edge, but Chrome crashes

    1 person found this answer helpful.
    0 comments No comments