The type initializer for 'Telerik.Reporting.Processing.Common.FontContainer' threw an exception.
Environment
Product Version | 13.0.19.116+ |
Product | Progress® Telerik® Reporting |
Error Message
InnerException = {System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Drawing.Unit' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.DllNotFoundException: Unable to load ... InnerException = {System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_... Message = "The type initializer for 'Gdip' threw an exception." Message = "Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory"
Solution
Test the approaches given in Can't use System.Drawing.Common in microsoft/dotnet:runtime. For example, make sure you install it in your runtime and not in your dotnet build.
Check Using Telerik Reporting in .NET Core Applications Blog post where you can find some additional information for using Telerik Reporting under Linux in How do I Run it on Linux? and Wow. What about Containers? sections.