«Определение отчета для отчета« ххх »не указано».
Я впервые пробую SSRS с помощью веб-формы ASP.Net.
Я создал локальный отчет RDLC и использовал ReportViewer в веб-форме «По умолчанию». Под смарт-тегом я выбрал «Выбрать отчет» и выбрал отчет RDLC.
Когда я нажал клавишу f5, чтобы запустить отчет, появилась следующая ошибка, хотя я выбрал отчет из смарт-тега.
"The report definition for report 'xxx' has not been specified."
Пожалуйста, дайте мне знать, почему это не работает, как ожидалось.
Благодарю.
Кодирование для отчета:
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h1><%: Title %>.</h1>
<h2>Modify this template to jump-start your ASP.NET application.</h2>
</hgroup>
<p>
To learn more about ASP.NET, visit <a href="http://asp.net" title="ASP.NET Website">http://asp.net</a>.
The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET.
If you have any questions about ASP.NET visit <a href="http://forums.asp.net/18.aspx" title="ASP.NET Forum">our forums</a>.
</p>
</div>
</section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="739px">
<LocalReport ReportEmbeddedResource="WebApplicationFirstReports.Web Products.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData" TypeName="DataSetWebTableAdapters.DataTable1TableAdapter"></asp:ObjectDataSource>
</asp:Content>