使用 Visual Studio 发布网站时 RDLC 将被破坏

发布于 2024-08-15 15:13:14 字数 164 浏览 4 评论 0原文

我在 Visual Studio 中有一个大型 Web 应用程序解决方案。该解决方案的文件夹中包含一些 RDLC(客户端报告文件)。每当我使用 Visual Studio 发布它时,所有 *.rdlc 文件都会损坏。事实上,它们会转换为 1 KB 大小的文件。

为什么会发生这种情况以及如何解决它?

I've a large web application solution in Visual Studio. This solution contains some RDLC (client report files) in its folders. Whenever I publish it using Visual Studio, all *.rdlc files breaks. Indeed they convert to files with 1 KB size.

Why this happens and how can I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光沙漏 2024-08-22 15:13:14

我在将 Web 应用程序发布到 IIS 7.0 后遇到了问题,问题是报告未呈现,但是,我执行了以下操作并且它对我有用:

1- 从 此处 并将其安装在托管计算机上

2- go到 IIS 管理器 -->选择包含报表的 Web 应用程序,然后选择 Handler Mappings

3- 在 Handler Mappings 中,添加一个新的 Handler,将其信息设置如下:

请求路径:Reserved.ReportViewerWebControl.axd

类型:Microsoft.Reporting.WebForms(不同可能会找到版本,因此请使用最新版本)

名称:Reserved.ReportViewerWebControl.axd

我希望这会有所帮助。

i had a problem after publishing web application to IIS 7.0, the problem was that the reports were not rendered, however, i did the following and it worked for me :

1- download ReportViewer2008-2005 Redistributable from here and install it on hosting machine

2- go to IIS Manager --> choose the Web Application which contains the reports, and then choose Handler Mappings

3- when in Handler Mappings, Add a new Handler, Set its info as the following:

Request Path : Reserved.ReportViewerWebControl.axd

Type: Microsoft.Reporting.WebForms (different verisons might be found, so use the latest)

Name: Reserved.ReportViewerWebControl.axd

i hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文