I'm trying to setup the telerik reporting on a asp net core project targeting net462 and I can't configure it unless I use the app.config, but using the app.config is not an option, nor changing to .net core, so, anyone knows a way to setup this properly?
Thank you
Ivan Hristov
Telerik team
commented on 30 Apr 2021, 10:47 AM
Hi Paulo,
In .NET Core applications our configuration can be obtained from appsettings.json file. The .NET Core console applications also try to load the config from an app.config file, if appsettings.json is not present. I suggest to add an appsettings.json file to the root of your application and configure Telerik Reporting in it, as explained in this article: Telerik Reporting Configuration.
Thank you for your response. After reading the article I still can't figure how to configure the connection strings to be used by the reports. Can you help me with this setup?
Thank you
You may test to reference the Telerik Reporting assemblies for .NET Standard as .NET 4.62 is compatible with .NET Standard 2.0. They get the configuration from IConfiguration that may be set up to read a JSON configuration file.
Hi Paulo,
In .NET Core applications our configuration can be obtained from appsettings.json file. The .NET Core console applications also try to load the config from an app.config file, if appsettings.json is not present. I suggest to add an appsettings.json file to the root of your application and configure Telerik Reporting in it, as explained in this article: Telerik Reporting Configuration.
Thank you for your response. After reading the article I still can't figure how to configure the connection strings to be used by the reports. Can you help me with this setup?
Thank you