Microsoft 报表设计器:未记录的错误
我正在使用 RDLC 文件处理 asp.net 报告。一切工作正常,但现在当我添加新数据集时,出现错误。
我没有比这更多的信息,可以为您提供诊断问题的信息。有谁知道会发生什么吗?
我只想添加一个新的数据集。
I am working with asp.net reporting using RDLC file. Everything was working fine but now when I add a new dataset, an error occurs.
I have no more info than this, to provide you people to diagnose the problem. Have anyone idea what would be happening?
I just want to add a new dataset.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过以下方法解决了该问题:
在报表查看器(即 aspx 页面)中添加数据源。
转到其设计器,单击数据源前面出现的箭头,然后单击它。
单击“刷新 Scehma”并保存文件。
再次转到其代码并注释数据源代码。
尝试在 rdlc 中添加新数据集。现在将允许添加新数据集。
I solved the problem by following this method:
Add a datasource in your report viewer i.e. in aspx page.
Go to its designer and click on the arrow appearing in front of datasource, and click on it.
Click Refresh Scehma and Save the file.
Go to its code again and comment the datasource code.
Try adding new dataset in rdlc. It will allow adding new datasets now.
您引用了您创建的名为“PrecisionCareEntity”的库,是吗?所以只需删除引用并重做即可。
总的来说,我建议使用安装了 Reporting Services Integration 的 Visual Studio 2008/2010。这样您可以获得更好的结果和更少的错误!
e:在 Visual Studio 中:
顶部菜单 ->报告->报告属性... ->参考文献:
You referenced a Library that you created called 'PrecisionCareEntity', did you? So just remove the reference and redo it.
Overall I would suggest using Visual Studio 2008/2010 with Reporting Services Integration installed. With that you get MUCH better results and less Errors!
e: In Visual Studio:
Top Menu -> Report -> Report Properties... -> References: