Good. I'm working with asp.net. It turns out that I have a report that I generate in this way:
private void MostrarReporte()
{
//reset
rptViewerActaVolante.Reset();
//dataSource
int idMateria = Convert.ToInt32( Session["materia"]);
DataTable dt = getData(idMateria);
ReportDataSource rds = new ReportDataSource("DataSetActaVolante", dt);
rptViewerActaVolante.LocalReport.DataSources.Add(rds);
//path
rptViewerActaVolante.ProcessingMode = ProcessingMode.Local;
LocalReport localReport = rptViewerActaVolante.LocalReport;
rptViewerActaVolante.LocalReport.ReportPath = "ActaVolante.rdlc";
//refresh
rptViewerActaVolante.LocalReport.Refresh();
}
private DataTable getData(int idMateria)
{
DataTable dt = new DataTable();
using (SqlConnection conn = new SqlConnection(Conexion.Cn))
{
SqlCommand cmd = new SqlCommand("spreporte_actaVolante", conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@idMateria", SqlDbType.Int).Value = idMateria;
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(dt);
}
return dt;
}
In local mode it worked fine, but when I did the deploy it gives me the following error:
An error occurred during local report processing. The report definition for report 'ActaVolante' has not been specified The file '\ xxxx \ public_html \ ActaVolante.rdlc' could not be found.