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

FAIL to create Telerik Reporting REST Service using ServiceStack

7 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roxana
Top achievements
Rank 1
Roxana asked on 24 Jul 2014, 01:47 PM
Hi!

I've been trying to follow the steps in the documentation, but when I try to run the service all i get is a TypeInitializationsException
when

new ReportsHost().Init();

is called, because of a MissionMethodException inside the ServiceStack dlls

Method not found: 'Void ServiceStack.Text.JsConfig.set_DateHandler(ServiceStack.Text.JsonDateHandler)'.

Any Idea how to solve this?

Thanks,
Roxana

7 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 29 Jul 2014, 11:28 AM
Hello Roxana,

The error does not seem to be related to the Reporting REST ServiceStack service. Please check the following msdn discussion: MissingMethodException w/ Method present -> nerve-racking VS2010 bug?

When you configure the Reporting REST service, verify it is deployed as on a single instance in order the service to be able to synchronize the read/write operations for the cache. Also the service must be the only initiated Service Stack service in the project - Reporting REST ServiceStack service's system requirements.


Feel free to open a support ticket and send us a demo project illustrating the problem, which we can test at our end.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ralf
Top achievements
Rank 1
answered on 01 Aug 2014, 06:39 AM
Having the same issue when following the documentation at:

http://www.telerik.com/help/reporting/telerik-reporting-rest-servicestack-hosting-iis.html

Visual Studio 2013 Update 2
Telerik Reporting 2014 Q2 8.1.14.618
empty ASP.NET Web application
adding ServiceStack 3.9.70.0 NuGet package.
Adding code for ReporstHost.

Published Release version and deployed in IIS (windows 7 x64).
Testing URL "/api/reports/formats" leads to the exception above.

Exception details:

Stack Trace: 

[MissingMethodException: Method not found: 'Void ServiceStack.Text.JsConfig.set_DateHandler(ServiceStack.Text.JsonDateHandler)'.]
Telerik.Reporting.Services.ServiceStack.ReportsHostBase..cctor() +0

[TypeInitializationException: The type initializer for 'Telerik.Reporting.Services.ServiceStack.ReportsHostBase' threw an exception.]
Telerik.Reporting.Services.ServiceStack.ReportsHostBase..ctor() +0
MixasReportService.Global.Application_Start(Object sender, EventArgs e) +28

[HttpException (0x80004005): The type initializer for 'Telerik.Reporting.Services.ServiceStack.ReportsHostBase' threw an exception.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951237
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): The type initializer for 'Telerik.Reporting.Services.ServiceStack.ReportsHostBase' threw an exception.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949




How to solve this?


0
Stef
Telerik team
answered on 05 Aug 2014, 03:55 PM
Hello,

The attached demo project is created with Telerik Reporting Q2 2014 SP1 version 8.1.14.804. The project displayes a simple report in the HTML5 Report Viewer served through the Reporting REST service (ServiceStack implementation).

Please, compare the settings to yours and let us know what additional settings are required to reproduce the problem at our side with the given projects.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Craig
Top achievements
Rank 1
answered on 22 Apr 2015, 12:38 AM
Hallo, I found the same issues as mentioned above. I've downloaded example but would like to know if this will get fix in newer versions?
0
Stef
Telerik team
answered on 23 Apr 2015, 02:47 PM
Hi Craig,

We were not able to reproduce the problem and created the demo project, attached to my previous post, to illustrate the settings of the Reporting REST ServiceStack service.

If the issue is still reproducible on your machine, test switching to the Reporting REST WebAPI based service - How To: Add Telerik Reporting REST Web API to Web Application.


In order to investigate the problem, please open a support ticket and submit a demo project reproducing it including details about the test environment.

Regards,
Stef
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Accepted
Sandra Walters
Top achievements
Rank 1
answered on 14 Feb 2017, 09:22 PM

If anyone is still coming to this forum thread with the same problem:  I've just encountered this issue and found the cause to be ServiceStack's NuGet package was bundling the wrong versions of its dependencies.

I'd started following along with the tutorial given here:  http://docs.telerik.com/reporting/telerik-reporting-rest-servicestack-hosting-iis

I'd created a new project, added the two Telerik reporting libraries as references, added the ServiceStack version 3.9.71 to the project via NuGet, then created the ReportsHost.cs and modified the Global.asax to initialize.  That's all.  Tried to run and got this - MissingMethodException: Method not found: ServiceStack.Text... (etc)

After looking around, I thought to check the packages.config in the project folder.  Here's what NuGet added.

  <package id="ServiceStack" version="3.9.71" targetFramework="net452" />
  <package id="ServiceStack.Common" version="3.9.11" targetFramework="net452" />
  <package id="ServiceStack.OrmLite.SqlServer" version="3.9.14" targetFramework="net452" />
  <package id="ServiceStack.Redis" version="3.9.11" targetFramework="net452" />
  <package id="ServiceStack.Text" version="3.9.11" targetFramework="net452" />

 

For some inexplicable reason, the ServiceStack package in NuGet for this version (3.9.71) was not installing the correct versions of its dependencies.

I removed all of the ServiceStack libraries through the NuGet package manager, then added them one-by-one to get the right versions (starting with ServiceStack.Text, then ServiceStack.Common, and so forth,in order of dependency).  After that, all the libraries were the correct versions, and the reporting project would run.

0
Stef
Telerik team
answered on 15 Feb 2017, 03:33 PM
Hello Sandra,

Thank you for sharing the details about the problem and the solution.
Indeed there is a version issue with Nuget packages, which I hack by changing the versions in the packages.config file and forcing Visual Studio to load the exact versions of the third-party DLLs.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Roxana
Top achievements
Rank 1
Answers by
Stef
Telerik team
Ralf
Top achievements
Rank 1
Craig
Top achievements
Rank 1
Sandra Walters
Top achievements
Rank 1
Share this question
or