We have a .NET Web Application hosted in Azure. We have recently had reports of issues opening telerik reports with the error: An exception was thrown by a TaskScheduler. Exception of type "System.OutOfMemory" was thrown
1 Answer, 1 is accepted
answered on 26 Sep 2023, 08:17 AM
I noticed that you have asked the same question in a Support ticket. I will summarize my reply from the other thread here so that other users may find it if they hit a similar problem.
Based on the exception message and the screenshot, I assume that you use an HTML5-based Report Viewer to display your reports. It relies on a Reporting REST Service to get the rendered reports, and it looks like the error occurs in the REST Service.
Our code uses internally the TaskScheduler Class when queueing the tasks for rendering reports and for other purposes. Most probably, the "System.OutOfMemory" error is thrown by the GDI+ that we use for measurement and rendering. Unfortunately, the exception message is too general for diagnosis purposes.