New to Telerik Reporting? Download free 30-day trial

Docker Container Error System.NullReferenceException Object reference not set to an instance of an object

Environment

OS Docker for Linux
Product Version 13.0.19.116 +
Product Progress® Telerik® Reporting

Description

System.NullReferenceException: Object reference not set to an instance of an object when rendering report in a Docker container on Linux

Error Message

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Reporting.Drawing.FontExtensions.ToGdiFont(IFont font)
   at Telerik.Reporting.Processing.GdiFontInfoCache.CreateValue(IFont font)
   at Telerik.Reporting.Processing.GdiFontCache1.GetValue(IFont font)
   . . .

Solution

Install the Microsoft true type fonts in the container and point the fonts folder in the application configuration file, for example, app.config file for desktop applications.

In this article