I am running ReportViewer 10 using a local report (rdl) file in an MVC web site. I am passing in a DataSet that has the correct data with column names that match the report definition.
var reportDataSource = new ReportDataSource("dataset1", resultSet);
ReportViewer1.LocalReport.ReportPath = Server.MapPath("/Reports/Report2.rdl");
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(reportDataSource);
List<ReportParameter> lst = new List<ReportParameter>();
ReportParameter rptParam1 = new ReportParameter("Id", "54");
lst.Add(rptParam1);
ReportViewer1.LocalReport.SetParameters(lst);
ReportViewer1.LocalReport.Refresh();
The error I am getting is:
I am unable to find any more specific information on the exact error. Is there a log file somewhere I can look at?
Thank you.