Hi,
we have a asp.net reportviewer assigned a dataset to the .rdlc,on my localmachine it works perfectly fine,when we publish to the web server and attempt to run it an error occurs.
- An error occurred during local report processing.
- The report definition for report 'C:\inetpub\wwwroot\emed\MainReportByMonth.rdlc' has not been specified
- Could not find file 'C:\inetpub\wwwroot\emed\MainReportByMonth.rdlc'.
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
Width="835px" ShowBackButton="False" ShowFindControls="False" ShowPageNavigationControls="False"
ShowPrintButton="False" ShowRefreshButton="False" ShowZoomControl="False">
<LocalReport ReportPath="MainReportByMonth.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="dsMainByDate" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
ReportBLLogic objRptBLL = new ReportBLLogic();
dtbl = objRptBLL.GenerateMainReport(dID, "GetDoctorListByParam");
ReportViewer1.Visible = true;
ReportViewer1.LocalReport.DataSources.Clear();
ReportDataSource source = new ReportDataSource("dsMainByDate", dtbl);
ReportViewer1.LocalReport.DataSources.Add(source);
this.ReportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SetSubDataSource);
ReportViewer1.LocalReport.Refresh();
For sub report:
ReportBLLogic objRptBLL = new ReportBLLogic();
dtbl = objRptBLL.GenerateSubReportDate(dID, dt, dt1, "GetDoctorListByDate");
e.DataSources.Add(new ReportDataSource("dsSubReport", dtbl));
I wan to know how this occurs.But i couldn't predict what happens here. Can any one help me to do this?