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

WCF Self Hosting

10 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 2
Jason asked on 12 Jun 2011, 11:25 AM
Just wondering is there any example of the wcf self hosting, running windows system serivce

cheers

10 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 13 Jun 2011, 05:14 PM
Hello Jason,

The Telerik Reporting service is a normal WCF service and it can be started within a Windows Service. Check out the attached sample and following help articles:

Just make sure for your Windows Service project that you are not using the .NET Client Profile Framework.

Kind regards,
Peter
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
Chandan Dey
Top achievements
Rank 1
answered on 09 May 2013, 01:59 PM
Hi Peter,
Thanks for your reply.

The solution which was you provide is working fine. But it will only work in IIS hosting. I will publish the web project and keep into wwwroot and then change the url like http://localhost:8080/ReportService/ReportService.svc it will work fine. But when I host the service as a Windows Service it will not work.

There are some client access policy file issue.

I am sending screen shot.
I have clientaccesspolicy file in bin, wwwroot etc.

How can i send you source file?

Please look into it.
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 13 May 2013, 02:39 PM
Take a look at that: http://www.telerik.com/help/reporting/self-hosted-telerik-reporting-wcf-service.html
There is a working code sample.
Notice the following endpoint (sounds like you might be missing it): 
 <endpoint address=""
                  binding="webHttpBinding"
                  behaviorConfiguration="WebBehavior"
                  contract="Telerik.Reporting.Service.IClientAccessPolicy"/>
0
Chandan Dey
Top achievements
Rank 1
answered on 14 May 2013, 01:40 PM
Hi Hadib Ahmabi,

Thanks for your reply.

I double check in my config file and I am using the entry which is you mention. But no luck the same error will occurred.

And the link you provide not help much or may be not understandable to me.

How can I send you my source code in this forum then I will send you the code.

Thanks
Chandan


0
Chandan Dey
Top achievements
Rank 1
answered on 17 May 2013, 10:39 AM
Hi,
Can anyone to solve my problem then I move forward.

Currently my report not show with windows hosted service. And one more thing if I host the ReportService.svc in IIS it will not work when set ReportServerUri from code.
Like :
repViewer.ReportServerUri = new Uri("http://localhost/TestApp/ReportService.svc");
repViewer.Report = "TestReportLibrary.SummaryReport, TestLibrary";

It will only when set in XAML file.
like :
<telerik:ReportViewer Grid.Row="1" x:Name="repViewer" telerikControls:StyleManager.Theme="{Binding SelectedItem, ElementName=ThemeSelector}" ReportServiceUri="../ReportService.svc"  />

But my main requirement is I want to host the service as windows service.
Another problem is I am unable to print/save the report when I click Print/Save icon in toolbar nothing will happned. But it will work on your demo.

Please if it is possible let me know asap.

Thanks in advance
0
Stef
Telerik team
answered on 17 May 2013, 01:39 PM
Hello Chandan,

You can find attached a sample application created based on the How to: Create Self-Hosted Telerik Reporting WCF Service help article.

On your other approach, assure that the service is reachable at the provided address.

If you need further help, open a support ticket and send us your details there.

Regards,
Stef
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Chandan Dey
Top achievements
Rank 1
answered on 22 May 2013, 05:58 PM
Hi Stef
Thanks for your reply and sorry for late reply.

Yes your test application solved my problem after spend more then half month to achieve this.

Thanks once again.
Chandan
0
Chandan Dey
Top achievements
Rank 1
answered on 27 May 2013, 01:44 PM
Hi,

I faced a new problem in Telerik report viewer toolbar.
In Export button there is some items are missing. Like XPS, Excel Worksheet, PowerPoint Presentation etc.
I have installed XPS, MS Office in my development & hosting machines and both machines are Windows7 but in my development machine Telerik reporting trial version is installed.

In my development machine all are showing and works fine.
But in hosted machine those are missing.

After googled there is some suggestion ask to use Medium Trust but not understood how to use.

Please let me know how to fix this issue.

Thanks
Chandan
0
Chandan Dey
Top achievements
Rank 1
answered on 29 May 2013, 06:28 AM
Hi,
Is there any solution about the missing items in report viewer export toolbar mention in my last post.

Thanks
Chandan
0
Stef
Telerik team
answered on 31 May 2013, 04:06 AM
Hello Chandan,

Please double-check if all needed assemblies are deployed correctly and are referenced from the right location since there is another installation on the host machine. Notice some rendering formats depend on additional assemblies which also has to be included in the distribution: Rendering Extensions.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Jason
Top achievements
Rank 2
Answers by
Peter
Telerik team
Chandan Dey
Top achievements
Rank 1
Hadib Ahmabi
Top achievements
Rank 1
Stef
Telerik team
Share this question
or