System.AggregateException: One or more errors occurred.
Posted by: Роман Берлов
Date: April 13, 2024 12:49PM

I use MySql.Data 8.3.0 version for NET 8.0.

I call asynchronous methods but I don't use async void only async Task. But my try-catches do not work, I get this error in AppDomain.CurrentDomain.UnhandledException event handler:

System.AggregateException: One or more errors occurred. (Authentication to host '142.132.202.107' failed. (I/O error occurred.))
---> System.AggregateException: Authentication to host '142.132.202.107' failed. (I/O error occurred.)
---> System.IO.IOException: I/O error occurred.
--- End of inner exception stack trace ---
at MySql.Data.Common.Ssl.<StartSSLAsync>b__10_1()
at System.Threading.CancellationTokenSource.Invoke(Delegate d, Object state, CancellationTokenSource source)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
--- End of inner exception stack trace ---
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Also, I'm disappointed because my code is missing in the stack trace. I don't understand - it may be a bug or not that I don't handle Exception into my catch block.

Options: ReplyQuote


Subject
Written By
Posted
System.AggregateException: One or more errors occurred.
April 13, 2024 12:49PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.