“未将对象引用设置为对象的实例"由 Tablix 的高度引起的 [英] "Object reference not set to an instance of an object" caused by height of Tablix

查看:34
本文介绍了“未将对象引用设置为对象的实例"由 Tablix 的高度引起的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行我的 Web 应用程序时遇到报告导致对象引用未设置为对象的实例"异常的问题.到目前为止,这仅发生在一台 QA 机器上.

I have an issue with a report causing an "Object reference not set to an instance of an object" exception when run through my web application. This is, so far, only happening on one QA machine.

我可以:

  • 在我的开发机器上本地运行报告(最新代码,相同数据库)
  • 通过 QA 机器上的 Reporting Services Web 界面运行报告
  • 如果我选择 PDF/TIFF 以外的格式(例如 Excel、CSV、HTML、XML 均成功报告),请通过我的网络应用程序在 QA 机器上运行报告

当我收到异常时,QA 机器上的 Reporting Services 日志看起来像这样.

The Reporting Services log on the QA machine looks like this when I get the exception.

我认为日志没有帮助,所以我开始将报告缩减到最低限度以找到问题.

I did not find the log helpful so I started whittling the report down to a minimum to find the issue.

我的发现让我很困惑.

鉴于 以下 RDL;我可以将 Tablix list1 的高度从 3.09444in 更改为 1in,将报表部署到 QA 服务器,报表将成功运行.

Given the following RDL; I can change the height of Tablix list1 from 3.09444in to 1in, deploy the report to the QA server and the report will run successfully.

如何缩短 Tablix list1 的高度来防止异常?

How in the world could shortening the height of Tablix list1 prevent the exception?

更新它不会将 tablix 的高度移动到 1 英寸.它正在摆脱高度上的长小数点.我更改了(3.09444in3.1in)并且报告运行成功.FTR,我没有选择高度 3.09444in...rs 在我设计报告时为我选择的.

UPDATE It's not moving height of the tablix to 1in. It's getting rid of the long decimal on the height. I changed (3.09444in to 3.1in) and the report ran successfully. FTR, I did not choose the height 3.09444in...rs chose that for me while I designed the report.

推荐答案

通过将 Tablix 高度的长小数点从 3.09444in 更改为 3.1in 来修复.

Fixed by changing the long decimal on the height of a Tablix from 3.09444in to 3.1in.

我没有选择高度 3.09444in.

I did not choose the height 3.09444in.

Reporting Services 设计师在我设计报表时为我选择了这个.

The Reporting Services designer chose that for me while I designed the report.

这篇关于“未将对象引用设置为对象的实例"由 Tablix 的高度引起的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆