65.9K
CodeProject 正在变化。 阅读更多。
Home

Web.Config 更新 Microsoft.ReportViewer.WebForms, 版本 9.0.0.0

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1投票)

2013 年 10 月 11 日

CPOL
viewsIcon

32065

Web.Config 转换 WebFroms 版本 8.0.0.0 到 WebFroms 版本 9.0.0.0 的解决方案:1) 关闭 VS 2) 删除以下位置的所有临时 Asp 文件:(Windows


Web.Config 转换 WebFroms 版本 8.0.0.0 到 WebFroms 版本 9.0.0.0 到

解决方案:

1) 关闭 VS
2) 删除以下位置的所有临时 Asp 文件:(Windows 安装路径)C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files


3) 将以下代码行添加到您的 web.config 文件中
    <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

4) 您还应该注释掉 <asssembly> 部分中的先前版本,例如

<!--<add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>-->
<!--<add assembly="Microsoft.Reporting.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->

5) 将以下代码行添加到您的 web.config 文件中,位于 <httpHandlers> 下

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

6) 并注释掉您之前的版本,例如
<!--<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
-->


这样就可以工作了
© . All rights reserved.