Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReportViewer error - The definition of the report " is invalid. Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectMode

I have ReportViewer in my project. When I create .exe of this file in InstallShield in Vsual Studio 2012 I add into Redistributables Microsoft ReportViewer 2010.

When I do install my app on Windows 8 - every ReportViewer displays it's report correctly.

I'm having problem on Windows XP the ReportViewer loads correctly but displayes this error instead of correct Report:

An error occurred during local report processing. The definition of the report " is invalid. An unexpected error ocurred in Report Processing.

Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectMode. Version =11.0.0., Culture=neutral, PublicKeyToken=89845dc8080cc91 or one of its dependencies. this system cannot find the file specified.

I ensure you that in references I have added Microsoft.ReportViewer.Winfroms 11.0.0.0 and Copy Local = true.

How can I solve this issue?

like image 966
Marek Avatar asked Aug 24 '13 06:08

Marek


1 Answers

I upvoted the reply marked as the answer because I was, infact, missing .dlls - but I did not fix it in the manner @Marek suggested. I'm using VS2013 and installing the Microsoft.Reporting nuget package fixed the problem. I would suggest to anyone with this problem trying this. That way, you automatically get all the dependencies.

enter image description here

like image 107
Ben Avatar answered Sep 17 '22 16:09

Ben