or
[EnableClientAccess] public class AdventureWorksDomainService : LinqToEntitiesDomainService<AdventureWorksEntities> { public IQueryable<Product> GetProducts(string name) { return ObjectContext.Products.Include("ProductModel").Where(w => w.Name.Contains(name)); } }using System.Collections.Generic; using System.Linq; using Telerik; using Telerik.Reporting; namespace MyReport { public partial class MainWindow { public MainWindow() { InitializeComponent(); var project = new List<Project>(); var pro = new Project {Name = "Name One", Nos = new List<int> {1, 2, 3, 4, 5}}; project.Add(pro); pro = new Project {Name = "Name Two", Nos = new List<int> {1, 2, 3, 4, 5}}; project.Add(pro); var reportSource = new InstanceReportSource {ReportDocument = new SampleReport()}; reportSource.ReportDocument.Reports.FirstOrDefault(rep => rep.Name == "SampleReport").DataSource = project; reportViewer1.ReportSource = reportSource; } private class Project { public string Name { get; set; } public List<int> Nos { get; set; } } } }It seems, that the 4.0 Assembly loader will not load/accept the Telerik.Reporting.dll, because this dll is targeted to 2.0 !
the Telerik.reporting.dll usally works, but when i need to add some AssemblyReferences..., i must use the .Net Configuration system. -> without the <configSections> block, it works!
<configuration>
<configSections> <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting" allowLocation="true" allowDefinition="Everywhere"/> </configSections> …
<Telerik.Reporting>
<AssemblyReferences>
....
</configuration>