RDLC报表 发布报错 100分

成都锦福工作室 2010-09-24 03:09:32
设计好RDLC报表后,使用ReportViewer呈现:
RDLC文件:A.rdlc/ Build action:嵌入资源/ Copy to Output:不拷贝
ReportViewer:LocalReport.ReportPath=Reports\A.rdlc 其余都是默认设置

当我发布到远程服务器上 发现运行报表报错 所以我上网查了下 找到如下办法:
1.并运行ReportViewer.exe
2.尝试在bin目录下 增加:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.ReportViewer.WebForms.dll

但是到目前为止 问题依旧 还是无法运行 但是在本地 使用VS2008 是可以运行的 以下是报错信息:
“/Reports”应用程序中的服务器错误。
分析配置文件时出错。缺少 ReportServerVirtualDirectory 元素。

请问是什么原因造成的 如何修改呢?
...全文
322 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
老Key 2010-09-28
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 sdfkfkd 的回复:]
看楼主的意思,好象是发布到WEB上面使用
不过RDLC报表是不能在WEB上面使用的,WEB下应该使用RDL报表
[/Quote]恩,我也同意ls的观点。。。
特别 2010-09-27
  • 打赏
  • 举报
回复
看楼主的意思,好象是发布到WEB上面使用
不过RDLC报表是不能在WEB上面使用的,WEB下应该使用RDL报表
wjhx 2010-09-27
  • 打赏
  • 举报
回复
没碰到过这个问题,帮顶一下
zshdy 2010-09-27
  • 打赏
  • 举报
回复
<ReportServerUrl></ReportServerUrl>
<ReportServerVirtualDirectory>ReportServer</ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
RSWebApplication.config file
wuyq11 2010-09-24
  • 打赏
  • 举报
回复
<ReportServerUrl></ReportServerUrl>
<ReportServerVirtualDirectory>ReportServer</ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
RSWebApplication.config file
风之影子 2010-09-24
  • 打赏
  • 举报
回复
在服务器上发布并在GAC里添加报表组件

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧