2016-02-25 55 views

回答

0

目前ReportViewerForMVC使用的Visual Studio 2012的Microsoft.ReportViewer.WebForms DLL,版本= 11.0.0.0按照web.config中:

<system.web> 
     <httpHandlers> 
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" /> 
     </httpHandlers> 
</system.web> 
  1. 如果你沒有這個DLL安裝,那麼你將需要安裝Visual Studio 2012 Report Viewer Runtime

  2. 如果您沒有安裝SQL Server 2012,首先您需要安裝Microsoft System CLR Types for SQL Server 2012(直接鏈接:X86 versionX64 version)。

Microsoft.ReportViewer.WebForms版本11將被添加到GAC:

enter image description here

  • 在Visual Studio添加到參考:C:\ Windows \ assembly \ GAC_MSIL \ Microsoft.ReportViewer.Common \ 11.0.0.0__89845dcd8080cc91 \ Microsoft.ReportViewer.Common.dll