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
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