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

前端 未结 9 1015
天涯浪人
天涯浪人 2021-02-08 18:08

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 depl

9条回答
  •  情话喂你
    2021-02-08 18:53

    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

提交回复
热议问题