When deploying a project to a internal test server I got the following error:
The definition of the report ‘Main Report’ is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly ‘Microsoft.ReportViewer.ProcessingObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
Fix this by adding a reference to ProcessingObjecdtModel.dll in you project. You can find the ProcessingObjecdtModel.dll in the GAC. The problem with the GAC is that you can’t copy the .dll from the GAC using Windows Explorer. But you can copy the DLL with Command Prompt (cmd.exe).
To do this:
-
Run -> cmd.exe
-
cd C:WindowsassemblyGAC_MSILMicrosoft.ReportViewer.ProcessingObjectModel 9.0.0.0__b03f5f7f11d50a3a
-
copy Microsoft.ReportViewer.ProcessingObjectModel.dll c:locationFolder
This action will look like this:
Copy the Microsoft.ReportViewer.ProcessingObjectModel.dll to your Bin folder or at a reference to the assembly.
Hope it helps,
Pieter
Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of presentation.