1.5 KiB
1.5 KiB
title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Docker Container Error System.NullReferenceException Object reference not set to an instance of an object | Such error might be thrown in docker for Linux | troubleshooting | Docker Container Error System.NullReferenceException Object reference not set to an instance of an object. at Telerik.Reporting.Drawing.FontExtensions.ToGdiFont(IFont font) | system- null-reference-exception-docker | 1445482 | kb |
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.