Internal Server Error A generic error occurred in GDI+

1 Answer 639 Views
.NET Core Report Designer (standalone)
Yogendra
Top achievements
Rank 1
Yogendra asked on 16 Aug 2021, 03:54 PM | edited on 16 Aug 2021, 03:55 PM
I have an ASP .NET CORE application hosted on IIS server. I am using telerik reporting to generate reports. While generating reports it shows "Internal Server Error A generic error occurred in GDI+". At first I thought the problem was due to telerik repot setting was not configured properly but it was configured properly. And at last i found the issue. The issue was the report was not taking some text properly. The text was "च‌ौधरी" and i again typed the text like this "चौधरी" it was supported. The report is being generated properly on applications hosted on windows 10 operating system with the same text i.e. "च‌ौधरी" but on application hosted on Windows server 2012 R2 standard shows "Internal Server Error A generic error occurred in GDI+". Is the operating system creating problem as some unicodes may not be supported in old operating systems? I need solution. I did some research and did changes accordingly but nothing helped the error is still coming. The image of error message is attached with the post.

More Detail of the exception:

{"message":"","exceptionMessage":"A generic error occurred in GDI+.","exceptionType":"Telerik.Reporting.Services.Engine.DocumentRenderException","stackTrace":" at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo()\r\n at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID)\r\n at lambda_method(Closure , Object , Object[] )\r\n at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()"}


1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 19 Aug 2021, 11:20 AM

Hello Yogendra,

GDI errors are thrown by the Graphics Device Interface (GDI) that Reporting engine uses to measure and render the items in our reports. Note that we require a full GDI+ implementation.

You may try using a report that doesn't contain Unicode characters. Also, does the font support such characters?

Regards,
Neli
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
.NET Core Report Designer (standalone)
Asked by
Yogendra
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or