TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kavi suja
NA
298
171.1k
After publish .RDLC riles not working
Sep 30 2013 1:45 AM
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?
Reply
Answers (
3
)
image in gridview
how to save Textfile by using thi code