Could not load file or assembly Microsoft.ReportViewer.WebForms
Ran into this error while deploying an application to production:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
A quick search found the issue. The server needs these three files:
These get installed by ReportViewer.exe, which can be found here:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe
In my case I just FTP’s up my entire C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer folder to the server and then I was able to run the EXE without problem.