VS2012开发ReportViewer遇到的问题解决方案
2016-06-02 14:58
295 查看
简单记录一下:
开发中:
1.一直提示没有给DataSet1绑定数据实例
2.报表和页面间参数传递问题
3.读取各种数据源问题
发布后:
1.提示两个程序集冲突问题解决
2.要将reportviewer的5个关键dll复制到bin目录中
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.DataVisualization.DLL
Microsoft.ReportViewer.ProcessingObjectModel.DLL
Microsoft.ReportViewer.WebForms.DLL
Microsoft.ReportViewer.WinForms.DLL
3.配置webconfig 指定版本信息
4.发布到正式环境,正式上并没有装任何关于reportviewer和sql有关的东西,报表页面会显示 Object reference not set to an instance of an object.
安装reportviewer.exe 提示需要安装Microsoft system CLR types for SQL Server 2012 。去微软官网下载,依次安装。
页面刷新。
5.reportviewer和ie11不兼容解决方法: 如图:
设置ie11的兼容模式即可解决。
先简短的记录一下。后面再补全。
开发中:
1.一直提示没有给DataSet1绑定数据实例
2.报表和页面间参数传递问题
3.读取各种数据源问题
发布后:
1.提示两个程序集冲突问题解决
2.要将reportviewer的5个关键dll复制到bin目录中
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.DataVisualization.DLL
Microsoft.ReportViewer.ProcessingObjectModel.DLL
Microsoft.ReportViewer.WebForms.DLL
Microsoft.ReportViewer.WinForms.DLL
3.配置webconfig 指定版本信息
<system.web> <pages validateRequest="false"> </pages> <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> <sessionState mode="InProc" timeout="300" /> <httpRuntime maxRequestLength="40000" requestValidationMode="2.0" executionTimeout="18000" /> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /> <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /> <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> </assemblies> <buildProviders> <add extension=".html" type="System.Web.Compilation.PageBuildProvider" /> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> </buildProviders> </compilation> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers> <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> </handlers> </system.webServer>
4.发布到正式环境,正式上并没有装任何关于reportviewer和sql有关的东西,报表页面会显示 Object reference not set to an instance of an object.
安装reportviewer.exe 提示需要安装Microsoft system CLR types for SQL Server 2012 。去微软官网下载,依次安装。
页面刷新。
5.reportviewer和ie11不兼容解决方法: 如图:
设置ie11的兼容模式即可解决。
先简短的记录一下。后面再补全。
相关文章推荐
- jQuery Ajax 的 load()方式
- double精度问题
- mysql 存储过程 -- 游标的使用(备忘)
- swift学习笔记-UI篇之UIImageView
- nginx的重启遇到的问题及解决方法
- 链接库(血泪史)
- 浅谈JavaScript 标准对象
- js实现购物车
- 查看和修改Linux的时区
- _cdel和thiscall调用约定
- Linux下查看文件和文件夹大小
- samba服务器的安装和配置
- Android Studio 中如何创建一个新的工程以及库文件的创建以及引用
- Rust 1.9.0 发布
- 欧拉函数 cojs 2181. 打表
- Memcache+Spring AOP
- HBase架构核心模块
- su: 无法设置用户ID: 资源暂时不可用
- mybatis-generator有三种用法
- Linux下GLIBCXX和GLIBC版本低造成的编译错误的解决方案