Visual Studio 11 Beta / IIS 7.5: Microsoft.ReportViewer.Common V11 not found

Hannes picture Hannes · Mar 20, 2012 · Viewed 18.8k times · Source

I work with Visual Studio 11 Beta (MVC3 + .Net 4.0). I deployed the project to the IIS 7.5 (MS 2008 Server), when I generate a report, I've got the following error:

System.IO.FileNotFoundException: Die Datei oder Assembly "Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" or one of its dependencies was not found. The system cannot find the file specified.

On my local developer machine I can't find the "Microsoft.ReportViewer.Common.dll" Version 11.0.0.0 only 10, but local it works fine! :(

Answer

curlackhacker picture curlackhacker · Apr 13, 2012

I had the same problem and I followed these steps!

Hope this helps.

To summarize the link, go to the GAC from the command line and find your problem DLLs:

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\Pick_A_Framework_Version\Microsoft.ReportViewer.Common.dll
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\Pick_A_Framework_Version\Microsoft.ReportViewer.ProcessingObjectModel.dll

and possibly:

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\Pick_A_Framework_Version\Microsoft.ReportViewer.WebForms.dll
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\Pick_A_Framework_Version\Microsoft.ReportViewer.WinForms.dll

Copy those dlls to your bin folder, and you should be all set.