ASP.NET报告无法正常工作 [英] ASP.NET Report not working
问题描述
你好,
我制作了一个Web应用程序,要在其中显示一份报告.我从工具箱中获取了报表查看器,并放置在我的Web表单上.当我在自己的Visual Studio(开发模式)下工作时,它工作正常,但是当我将其托管或放置在我的www.root文件夹中时,它显示出一个错误:报告"主报告"的定义为无效.报告定义无效.详细信息:根级别的数据无效.我用这个错误搜索了一下,才知道将iis文件夹中的.rdlc文件替换为原始/开发文件夹.没有显示我错误,但也没有显示我数据仅可见报告页眉,该页眉是导出到的页面.
我需要紧急帮助...
感谢
Hello,
I made a web application in which I want to show one report. I took report viewer from toolbox and placed on my web form. Its working fine when I''m working in my visual studio (development mode) but when I host or put it in my www.root folder, it shows me an error : "The defination of the report ''Main Report'' is invalid. The Report definition is not valid. Details: Data at the root level is invalid. I googled this error and came to know to replace the .rdlc file in your iis folder to the original/development one. I did it. Now its not showing me error, but its not showing me data as well. Only header of report which is page no, export to,is visible.
Plz I need urgent help...
Thanks
推荐答案
在预编译(发布)之前暂时将rdlc文件从项目中排除,然后将rdlc文件复制回部署文件夹中的相同位置
Exclude the rdlc files form the project temporarily before precompilation(publishing), then copy the rdlc file back to the same location on the deployment folder
这篇关于ASP.NET报告无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!