Asp.net报告查看器SRS设置

时间:2009-04-28 15:12:59

标签: reportviewer report

我目前有一个srs报告,其中有一个看起来像的网址 http://localhost/Report_SqlExpress/Pages/Report.aspx?ItemPath=/personnel_report 我已尝试使用报表查看器控件通过执行以下操作来显示此报表

<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" 
                                Font-Names="Verdana" Font-Size="8pt" Height="400px" Width="400px"  >
                                <ServerReport 
                                ReportServerUrl="http://localhost/Report_SqlExpress" ReportPath="personnel_report" />

                             </rsweb:ReportViewer>

但我一直收到错误

The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.

请求失败,HTTP状态为404:Not Found。

有谁知道我如何解决这个问题?

由于

1 个答案:

答案 0 :(得分:1)

问题是我的报告路径需要在它之前删除斜杠。 傻我。