Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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! :(

like image 786
Hannes Avatar asked Mar 20 '12 14:03

Hannes


1 Answers

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.

like image 99
curlackhacker Avatar answered Oct 11 '22 22:10

curlackhacker