My main goal is to set up Telerik reporting in my Silverlight application with RIA Services. But I can't get it working. Even not the easy bits.
I have been reading and trying and reading and trying without any luck.
What did I do:
- Server side (the same project that contains my services and Entity Model): create a "Reports" directory, create a Telerik report in it
- In my Services directory, create a "ReportingService.svc" that contains one line of code:
I also updated my web.config file with the proper WCF settings for the ReportService (bindings and endpoints) as explained in the Telerik article.
On my report I set the DataSource to an objectSource with
DataMember = GetBuildings // this is the name of the method from my DomainService that returns Buildings
DataSource = ProjectName.Web.Services.BuildingService // full qualified name of my DomainService
My DomainService (BuildingService)
Where BuildingEntities is my EntityModel.
When in the report designer, I can see the fields of my Building entity. But in the preview windows I receive the error "Exception has been thrown by the target of an invocation. The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider or not valid."
What am I doing wrong?
I must say that I also tried to create a class library with an new entity model to the database (even using the AdventureWorks db), using the EntityDataSource, and I receive the same errors.
I have been reading and trying and reading and trying without any luck.
What did I do:
- Server side (the same project that contains my services and Entity Model): create a "Reports" directory, create a Telerik report in it
- In my Services directory, create a "ReportingService.svc" that contains one line of code:
<%@ ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=5.1.11.928, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" %>
I also updated my web.config file with the proper WCF settings for the ReportService (bindings and endpoints) as explained in the Telerik article.
On my report I set the DataSource to an objectSource with
DataMember = GetBuildings // this is the name of the method from my DomainService that returns Buildings
DataSource = ProjectName.Web.Services.BuildingService // full qualified name of my DomainService
My DomainService (BuildingService)
public
class
BuildingService : LinqToEntitiesDomainService<BuildingEntities>
Where BuildingEntities is my EntityModel.
When in the report designer, I can see the fields of my Building entity. But in the preview windows I receive the error "Exception has been thrown by the target of an invocation. The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider or not valid."
What am I doing wrong?
I must say that I also tried to create a class library with an new entity model to the database (even using the AdventureWorks db), using the EntityDataSource, and I receive the same errors.