JSONResult.SerializerSettings Must Be of Type System.Text.Json.JsonSerializerOptions
Environment
Product Version | 14.0.20.219 |
Product | Progress® Telerik® Reporting |
.Net Framework | .NET Core 3.0 |
Description
If the Telerik Reporting REST Service project is targeting .NET Core 3.0+ and is throwing the error JSONResult.SerializerSettings Must Be of Type System.Text.Json.JsonSerializerOptions
Solution
- Add the NuGet Package, Microsoft.AspNetCore.Mvc.NewtonsoftJson
-
Append
.AddNewtonsoftJson()
to any of the following services configurations:services.AddControllers().AddNewtonsoftJson(); services.AddControllersWithViews().AddNewtonsoftJson(); services.AddRazorPages().AddNewtonsoftJson();