
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
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 >>

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

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

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

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

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

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.
Cliff