Hello Telerik team,
I’m trying to create a simple Telerik report programmatically and bind data from a custom class using an ObjectDataSource. My class has a method GetCustomers() that returns a collection of items.
Simplified setup:
I’ve also tried leaving DataMember
“The type or namespace ‘CustomerDetailedModel’ could not be found, or the assembly is not trusted.”
I’ve tried:
Adding the DLL via
AssemblyRef.FromFilePlacing the DLL in the application output folder
Using
AppDomain.CurrentDomain.AssemblyResolveConfiguring assembly references in
appsettings.json
Despite this, the report cannot resolve the type at runtime.
Questions:
How do I make
ObjectDataSourceresolve a CLR type from a custom assembly in a programmatically created report?What is the recommended way to configure assembly references in .NET Core / .NET 8 for reports?
Any guidance or examples would be greatly appreciated.
