the application requires that assembly microsoft.reportviewer.processingObjectModel version 11.0.0.0 be installed in the global assembly cache first

StackTrace picture StackTrace · May 10, 2013 · Viewed 43.9k times · Source

I have a small windows forms application created in Visual Studio 2012 that uses ReportViewer version 11.0.0.0.

The application target framework is .NET 4.0 and its deployment method is ClickOnce

On my PC it installs but on client machines, intallation fails with error

the application requires that assembly microsoft.reportviewer.processingObjectModel version 11.0.0.0 be installed in the global assembly cache first.

On the client machines, i have installed

  • .NET 4.0
  • ReportViewer 2010
  • Microsoft Report Viewer 2012 Runtime CTP
  • SQLSYSCLRTYPES.msi

in the project application files settings, i have set microsoft.reportviewer.processingObjectModel publish status to Include(Auto), in the references i have also set its Copy Local property to True.

what am i missing?

I have even followed the instructions here http://msdn.microsoft.com/en-us/library/ms251723.aspx

Answer

Vectoria picture Vectoria · Nov 25, 2014

Here is (arguably) the best way to deal with this issue... without downloading or installing any extras. This worked with Visual Studio 2012 (Ultimate)

  1. Goto the main project within your solution(default/statup project)
  2. Right Click and Click Properties / Select "Your Project">> Project>> Properties
  3. Click on "Publish" Tab to see publishing options
  4. Goto "Install Mode and Settings">> Click "Application Files" and Dialog opens
  5. Go down and look for the items set with "Publish Status" > Prerequisite
  6. You will find ReportViewer and Several Other Files set to Prerequisite
  7. Change all the Publish Statuses to "Include" in the drop down
  8. I know you only need the ReportViewer Only but this will eliminate other potential problems I came across
  9. Now all the required files will be added to your installation setup good to go!
  10. For interest, you can change include a desktop icon under "Install Mode and Settings">>Options>Mainfests>Create Desktop Short Cut