This is a migrated thread and some comments may be shown as answers.

Report preview and WCF datasource : endpoint not found

2 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LE DREAU Steeve
Top achievements
Rank 1
LE DREAU Steeve asked on 12 Mar 2010, 09:23 AM
Hi,

I'm trying to configure Telerik Reporting to make the preview able to get datasource from WCF Webservice. In runtime mode, it works well, but in design mode it tells me that the endpoint is not found. I think the configuration file is not found and tried to copy it into some bin folders but nothing works. Here is my project organization :

-1) a Web project that launches the silverlight app
-2) a Silverlight application project that hosts a Silvelright Report Viewer
-3) a WCF Webservice project that gives the possibility to grab datas from the DB.
-4) a standard class library project that contains my reports

My reports make calls to webservice through WCF but the preview doesn't work.

Where do I have to copy a configuration file to make it works ? and how do I have to name it please ?
In fact, what I would like to know is : when you click preview in the report designer, in which folder is run the preview rendering ? 

Thanks, 

Regards
Steeve

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Mar 2010, 04:59 PM
Hello COLIN,

The Telerik Reporting engine is an embedded reporting engine and as such it is usually hosted inside a 3rd party application (ex. console, Windows Forms, Web). When previewing a report in the Report Designer, the reporting engine is hosted inside the Visual Studio process (devenv.exe) and the report is loaded inside the Visual Studio's AppDomain. Have in mind that the valid config file in this case is the devenv.exe.config file and any connectionStrings or references to your DAL should be added in that config when previewing and external assemblies should be present in the same folder as well.
For more information please see How the Runtime Locates Assemblies.

For such scenarios we usually suggest to preview the reports in another application (be it a Windows Forms or Web) outside Visual Studio to ensure that all dependencies are resolved appropriately.

Best wishes,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 17 Mar 2010, 05:11 PM
Thanks for your answer. it's more clear like this.

Regards,

Steeve
Tags
General Discussions
Asked by
LE DREAU Steeve
Top achievements
Rank 1
Answers by
Steve
Telerik team
LE DREAU Steeve
Top achievements
Rank 1
Share this question
or