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'.
Width="835px" ShowBackButton="False" ShowFindControls="False" ShowPageNavigationControls="False"
ShowPrintButton="False" ShowRefreshButton="False" ShowZoomControl="False">
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?

Posted Sep 30, 2013, 6:14 AM
Kavi sujaPosted Sep 30, 2013, 6:11 AM
Thank you for your reply. I resolved this issue by refererring the following link :
http://stackoverflow.com/questions/3481223/publishing-rdlc-files
Posted Sep 30, 2013, 5:01 AM