Deploying Applications with the ReportViewer Control

Posted Tuesday, October 10, 2006 11:00 AM by C-Dog's .NET Tip of the Day

If you deploy an application that uses the ReportViewer control, you may find that you get an error like the following.

Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

A quick look at the gac folder (C:\Windows\Assembly) will quickly review that the necessary reporting controls are not present. This is because the controls are installed by VS2005, and not the framework.

To resolve this problem, simply go download the Reporting Services redistributable and install it on your server. This registers the necessary DLLs in the GAC to allow your ReportViewer controls to work.

Microsoft Report Viewer Redistributable

Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=309