Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
in Report with Microsoft Report Viewer locally
It works fine, but when I publish it in webserver (any webserver, even localhost ii7.0), it dosen't work and show this error in report viewer:
in vs 2010
An error occurred during local report processing.
The definition of the report 'Main Report' is invalid.
The report definition is not valid.
Details: Data at the root level is invalid. Line 1, position 1.

What I have tried:

C#
DataTable dt = new DataTable();
           //TalukApprove tlk = new TalukApprove();
           dt = GetData(instcode);
           rptinstitutewise.Reset();
           rptinstitutewise.ProcessingMode = ProcessingMode.Local;
           ReportDataSource DS = new ReportDataSource("Dsconsolidatedmanulstock", dt);
           rptinstitutewise.LocalReport.DataSources.Clear();
           ReportParameter[] parms = new ReportParameter[1];
           parms[0] = new ReportParameter("@instid", instcode);

           //this.ReportViewer1.ServerReport.SetParameters(parms);
           rptinstitutewise.ServerReport.Refresh();
           rptinstitutewise.LocalReport.DataSources.Add(DS);
           rptinstitutewise.LocalReport.ReportPath = Server.MapPath("~/Reports/Drugconsolidaterpt.rdlc");

           rptinstitutewise.LocalReport.Refresh();
Posted
Updated 25-Jul-19 2:04am
v2
Comments
Richard MacCutchan 24-Jul-19 8:03am    
"The definition of the report 'Main Report' is invalid."

I don't know anything about SSRS, but that message should give you a clue where to look.
Thulasiram.P 25-Jul-19 0:50am    
dont know why u r giving reply

1 solution

Either your report is invalid, or it was built using a newer version of SSRS than the version installed on your server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900