Telerik Reporting in Asp.net Core

0 Answers 226 Views
Report Viewer - HTML5 Rest Service
Noufal
Top achievements
Rank 1
Noufal asked on 22 Jun 2021, 03:34 PM

Hai Telerik Team,

I was testing , the integration of  Telerik Reporting in my asp.net Core application.But when i load report from my html page , it shows an error , related to connection string not get properly , the error message is that

An error occurred while loading the data schema for "sqlDataSource1": Unable to establish a connection to the database. Please verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.

Report is loading from designer , using same connection string.When i  try to integrate telerik example reports, system shows same error message.

please give me your suggestion to how fixt this issue

 

 

Dimitar
Telerik team
commented on 23 Jun 2021, 01:55 PM

Have you added the connection string in the project's web.config/appsettings.json?
Noufal
Top achievements
Rank 1
commented on 28 Jun 2021, 05:01 AM

Yes , I have added in the project's appsettings.json
Dimitar
Telerik team
commented on 30 Jun 2021, 01:07 PM

Is it the same connection string as the one used in the report designer?

If for some reason the report does not load in the report viewer, even when the connection string is valid, you may try to embed the connection string in the report definition. This can be done on the 2nd step of Configuring the SqlDataSource component, instead of using the default "Use a shared connection" option, select the "Embedded in the report definition" option.

If even that does not help, please attach a trace listener and send back the generated log. Depending on your project's target framework, choose one of the following ways to enable the trace listener:

- For .NET Framework project - How to: Create and Initialize Trace Listeners

- For .NET Core project - Troubleshooting reporting implementation into ASP.NET Core application

No answers yet. Maybe you can help?

Tags
Report Viewer - HTML5 Rest Service
Asked by
Noufal
Top achievements
Rank 1
Share this question
or