We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Local Report Rendering in 2.1 But Fails in 3.0

Thread ID:





148331 Oct 15,2019 06:27 PM UTC Oct 17,2019 05:20 AM UTC ASP.NET Core 3
Tags: ReportViewer
Bevan Coaton
Asked On October 15, 2019 06:27 PM UTC

Downloaded and executed the following example solution provided in a previous thread:
ReportSample_core797180486.zip (Core 2.1)
After adding a local .rdl report, we were able to connect to a SQL database and render the report without issue.

Problem: Created a new project in asp.net Core 3.0 adding the same file structure and nuget packages. When the report (index) page loads in Core 3, the following error is shown in the report view:

Unable to cast object of type 'System.Text.Json.JsonElement' to type 'System.String'.

Any help would be greatly appreciated.
Note: using the trial package and files.

Vinoth Srinivasan [Syncfusion]
Replied On October 16, 2019 06:53 AM UTC

Hi Paul, 
In our ASP.NET Core Report Viewer application we are using Json.NET serializer for ReportService which has been removed from ASP.NET Core 3.0 shared framework. So, could you please use AddNewtonsoftJson() with services to works with Json.NET serializer as per the migration information in below link,   
1.      Add a package reference to Microsoft.AspNetCore.Mvc.NewtonsoftJson 
2.      Update Startup.ConfigureServices to call AddNewtonsoftJson 
public void ConfigureServices(IServiceCollection services)  
Vinoth S. 

Bevan Coaton
Replied On October 16, 2019 03:36 PM UTC

Thank you very much.  Worked like a charm.

Mahendran Shanmugam [Syncfusion]
Replied On October 17, 2019 05:20 AM UTC

Hi Paul,  

Thanks for your update. 

We are happy your issue was resolved. 

Mahendran S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon