New to Telerik Reporting? Download free 30-day trial

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

  1. Add the NuGet Package, Microsoft.AspNetCore.Mvc.NewtonsoftJson
  2. Append .AddNewtonsoftJson() to any of the following services configurations:

    services.AddControllers().AddNewtonsoftJson();
    services.AddControllersWithViews().AddNewtonsoftJson();
    services.AddRazorPages().AddNewtonsoftJson();
    

See Also

In this article