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

Lightswitch Reporting WCF Service Help needed

7 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cliff McManus
Top achievements
Rank 1
Cliff McManus asked on 20 Jun 2012, 03:26 AM

I have followed the instructions on how to install Telerik Reports into Lightswitch.
http://blogs.telerik.com/blogs/posts/11-04-12/how-to-telerik-reporting-in-microsoft-lightswitch-beta-2.aspx
I am so frustrated I have been working at this in the evenings for two weeks and have not been able to get the darn thing to work.

I guess I do not understand how the magic works in getting the WCF service linked up to the Lightswitch application.
I have a LS app that I placed the WCF service project in. Is that all? Do I need to compile the WCF and install it somewhere?

I starts rendering the report then BOOM
Error: System.Reflection.TargetInvocationException : An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Telerik.Reporting.Service.SilverlightClient.RenderAndCacheEventArgs.get_RenderingResult()
   at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnRenderAndCacheCompleted(Object sender, RenderAndCacheEventArgs e)

------------- InnerException: -------------

System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
   at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   at proxy_3.EndRenderAndCache(IAsyncResult )
   at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndRenderAndCache(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

I have never worked with WCF and need a little hand holding to get this working.
Can someone from the community give me advice?
Thanks
Cliff

7 Answers, 1 is accepted

Sort by
0
Accepted
IvanY
Telerik team
answered on 25 Jun 2012, 11:26 AM
Hi Cliff,

All necessary steps to successfully configure the Telerik Reporting WCF service are shown in the Hosting WCF Service in IIS help article. Please, make sure that everything in your project is set up exactly in the same way: the assembly references, the .svc file and the service endpoints. Make sure as well that the aspNetCompatibilityEnabled attribute in the serviceHostingEnvironment element is true. There is nothing more specific in configuring the service so following the instructions above should be enough to make the service work as expected.

Regards,
IvanY
the Telerik team

FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. The webinar will go through a real-world scenario of creating reports, embedding them in your application(s), and distributing them within your organization. We will also cover the newly added support for sub-reports, navigation actions (such as drill-down and drill-through), and report sources. Register here and bring your questions with you. We’ll try to address them during the webinar! You may even win a Telerik Ultimate Collection license! Register today >>

0
terry
Top achievements
Rank 1
answered on 26 Jun 2012, 05:13 AM

Hello Cliff

I'm having the same problem and am wondering if you have been able to solve the problem?

Terry
0
Cliff McManus
Top achievements
Rank 1
answered on 19 Jul 2012, 02:54 PM
Yes I finally figured out how to get this to work.
In almost all demos they indicated you should pick a port for the WCF service to listen on.

Well it turns out the fix was very simple, however I wasted weeks of trial and error to uncover. (Not being a professional developer I was not sure how all the pieces fit together)

For Testing on your development machine have your WCF service listen on the same port that your lightswitch application is running. A popup message will show when you initially start your Lightswitch application indication the port, mine turned out to be localhost:50510

I still have not gotten this to work on the deployed application on Azure but will post what the changes need to be once I figure it out.

Cliff
0
terry
Top achievements
Rank 1
answered on 20 Jul 2012, 12:44 PM
Cliff

Not sure that I understand, for testing and development the WCF service needs to be listening on the same port as the LS app, OK I understand that part, but I'm confused, do you have the reports working in a production environment?

I still can't get that working

Terry
0
Cliff McManus
Top achievements
Rank 1
answered on 20 Jul 2012, 12:50 PM
Hi Terry
The answer is no not at this time. My application has been test deployed to Azure but I am not ready for production at this time.

I believe that I need to create a separate deployment package for the WCF service. I am unclear if it can be hosted in the Web role that Lightswitch uses or if I need a separate worker role for this.  Either way I will be playing with it over the weekend and may have an update.

If there are others that want to chime in with your experiences please do so.

Cliff
0
Daniel Plomp
Top achievements
Rank 2
answered on 30 Jul 2012, 09:15 AM
Hi Cliff,

Did you managed to get this working in the same WebRole?
We also don't want to 'buy' a separate instance of Azure just to host the WCF service. Wondering how we can do this.

Any thoughts on this?

Regards,
Daniel
0
Cliff McManus
Top achievements
Rank 1
answered on 26 Apr 2015, 08:51 PM

I did get it working on Azure. I purchased a extra small instance for the wcf service.

The following video is the best example of how to wire things up.

http://www.telerik.com/videos/reporting/getting-started-silverlight-report-viewer-for-telerik-reporting

Cliff

Tags
General Discussions
Asked by
Cliff McManus
Top achievements
Rank 1
Answers by
IvanY
Telerik team
terry
Top achievements
Rank 1
Cliff McManus
Top achievements
Rank 1
Daniel Plomp
Top achievements
Rank 2
Share this question
or