runtime: Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
No clue what this is about.
Setup:
- ASP.NET Core 3.0 (.NET Core version:
3.1.100-preview3-014645
) - MVC application
This is logged to the output window:
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
It would be good to know where this is coming from and why?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (14 by maintainers)
I feel either you or I are from a different planet. You never seem to get the point am trying to make. I would rather not communicate with you in future.
Thank you for your time.
The app was not crashing in this case. The code that was causing the exception (an
[int] count++;
inside aParallel.ForEach()
was simply causing that particular parallel thread to exit – possibly theAggregateException
was wrapping a thread abort or something here.The problem is, Visual Studio 2019’s tooling for debugging parallel threads suck! (its freeze/thaw of threads don’t work anymore). So this took quite some doing to unravel.
Anyway, thank you.
Ah, that looks like it’s VS’ logging for 1st-chance exceptions, meaning it’s logging when an exception is thrown even if it’s caught and handled.