Visual studio 2010 无法包含报表查看器web部件。错误为,程序集的版本高于引用的程序集

Visual studio 2010 无法包含报表查看器web部件。错误为,程序集的版本高于引用的程序集,visual-studio-2010,sharepoint-2010,web-parts,Visual Studio 2010,Sharepoint 2010,Web Parts,我正在VS2010中为SharePoint 2010制作一个web部件。web部件使用报表查看器控件。 我在项目中使用Copy Local=True选项引用的文件有: Microsoft.ReportViewer.Common.dll Microsoft.ReportViewer.WebForms.dll 两者都是版本10的文件 当我构建项目时,它运行良好。但当我在页面中添加此web部件时,它会显示以下错误 Compiler Error Message: CS1705: Assembly

我正在VS2010中为SharePoint 2010制作一个web部件。web部件使用报表查看器控件。 我在项目中使用
Copy Local=True
选项引用的文件有:

Microsoft.ReportViewer.Common.dll  
Microsoft.ReportViewer.WebForms.dll
两者都是版本10的文件

当我构建项目时,它运行良好。但当我在页面中添加此web部件时,它会显示以下错误

Compiler Error Message: CS1705: Assembly 'MySolution, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8acc41a360fa228d' uses 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
我已经安装了ReportViewer 10 redistribute和它的SP1,但运气不好。还将这些DLL复制到了我的SharePoint端bin文件夹。我做过很多次了


如何解决此问题?

通过更新引用版本9而不是10的my web.config来解决此问题