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

missingmanifestresourceexception when hosted in Windows Service

5 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 28 May 2013, 11:17 PM
So I'm getting the missingmanifestresourceexception that's supposed to be common in web applications, but I'm getting it when hosting in a Windows Service.

My reporting version is Q1 2013

I have the following projects in my solution, I tried to follow the Best Practices. Solution is VS 2010, all projects are set to .NET Framework 4, not client profile.

MyProject.Reporting - runs message queuing client to receive report generation requests, Telerik Report Processor, has project reference to MyProject.Reporting.Reports
MyProject.Reporting.Reports - contains the report
MyProject.Reporting.Service - windows service hosts MyProject.Reporting

I'm running Telerik Reporting in a Windows Service because on-demand reporting through ASP.NET is taking minutes or hours with the amount of data necessary to present.

Any ideas that I could try would be helpful.

5 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 29 May 2013, 11:56 PM
Also, I've tested the functionality with NUnit so I'm certain there isn't just a glaring error in my code, it just seems to fail when it's hosted in a Windows Service.

I'm still searching for an answer on this...
0
IvanY
Telerik team
answered on 31 May 2013, 02:23 PM
Hello Matt,

Have you tested your project without Telerik Reporting in order to verify that the issue is or is not caused by our report viewer. Additionally please check this thread for possible resolution of your issue.

We will need some more information regarding your issue if you need further assistance. It will be best if you are able to provide us with the stack trace from the exception and any other additional information related to the issue.

Regards,
IvanY
Telerik

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

0
Matt
Top achievements
Rank 1
answered on 31 May 2013, 10:26 PM
Actually I'm not using the Report Viewer. Due to the long report processing times (1000 records/hour) I've removed the Report Viewer functionality and now I'm using the report processor to generate the PDF files "offline" with my own Windows Service. I'm using the code as described on this page:

http://www.telerik.com/help/reporting/programmatic-exporting-report.html

The line of code it's failing on is within my report:
this.pictureBox1.Value = ((object)(resources.GetObject("pictureBox1.Value")));

It happens when I create an instance of the report here:
irs.ReportDocument = new PeachFarm.Reporting.Reports.JobDetailReport();

Message: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "PeachFarm.Reporting.Reports.JobDetailReport.resources" was correctly embedded or linked into assembly "PeachFarm.Reporting.Reports" at compile time, or that all the satellite assemblies required are loadable and fully signed.

HResult: -2146233038

Stack Trace:

   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at PeachFarm.Reporting.Reports.JobDetailReport.InitializeComponent() in c:\github\epeach\PeachFarm\PeachFarm.Reporting.Reports\JobDetailReport.designer.cs:line 140
0
Matt
Top achievements
Rank 1
answered on 31 May 2013, 11:29 PM
Whoops! It looks like it's the image in my report header that's causing the issue. Taking it out solves that error but what to do about it?
0
IvanY
Telerik team
answered on 05 Jun 2013, 10:50 AM
Hello Matt,

We will need to have a look at your image or a similar image that can be used to reproduce the issue. Additionally is your image causing the issue with the installed samples for example or just in your specific case? If the issue is reproducible only in your specific case then it will be best if you are able to provide us with runnable sample that exhibits the issue too so that we able to view and debug it locally.

Also please make sure that the image format is supported by GDI+ since Telerik Reporting supports only these formats. For more information please check the PicutreBox help article.

Regards,
IvanY
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
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or