I have base configuration in appsettings.json (.Net 9 application)
"telerikReporting": {
"assemblyReferences": [
{
"name": "My.Assembly.Reports"
}
],
"extensions": [
{
"name": "PDF",
"parameters": [
{
"name": "FontEmbedding",
"value": "Subset"
}
]
}
]
}
It works. But now I have multi layered configurations. There is appsettings.json and multiple other configuration files as customer1.json, customer2.json etc. Every customer has own settings and ovn assemly with reports. All is registered in program.cs in standard way. And it does not work. Seems that reportings have some hardcoded logic to read only from file named appsettings.json and whole configuration system of .Net is ignored.
It ends with errors:
An error has occurred while processing Report 'XXX':
The type "XXX.TelerikReport.ObjectDataSources.XXX.Root" contained in assembly
"XXX.TelerikReport.ObjectDataSources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" cannot be loaded.
To help improve the application's security, the reporting engine prevents loading types that are not essentially needed or listed as trusted by the user. If you
consider particular types or assemblies as trusted include them in the corresponding TypeReferences or AssemblyReferences element of the
'Telerik.Reporting' configuration section in the application's configuration file
Am I right? How can I split configs to multiple settings files? Can reporting work with configuration system as designed in .Net?