Could not load file or assembly Microsoft.ReportViewer.WebForms or one of its dependencies

user1269625 picture user1269625 · Feb 13, 2013 · Viewed 58.7k times · Source

When I goto my site I get this error...

Error   101 Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\mlui\csharp\WebAdmin_solution\WebAdmin\web.config    209

which is this line of code:

<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

I am using Visual Studio 2012, do I need to download something and add it to the VS 2012 folder?

Answer

Thorsten Dittmar picture Thorsten Dittmar · Feb 13, 2013

If you're actually using the Reporting Services, try to install the Reporting Services redistributable on the server you deploy your web site to or include the required assemblies with your web application.