安装完Report Viewer 10 (2010) 后
到目录“C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices” 下修改Microsoft.ReportingServices.targets文件
将第一行
“<UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>”
改为
“<UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>”