title: RDLC Local Report after deploy not working
body: <p>I build a Windows Application with Local Report using RDLC , it works well when i run the code inside VS2012 , but when i deploy it the application gives me some errors:</p>
  <blockquote>
  <p>An error ocured during local report processing.</p>
  <p>The report definition for report &quot;Report1.rdlc&quot; has been not specified</p>
  <p>Could not find a part of the path &quot;C:...\Report1.rdlc&quot;.</p>
  </blockquote>
  <p>Code im using:</p>
  <pre><code>DataSet2 ds = new DataSet2();
                  DataTable dt = ds.Table2;
  
                  DataRow dr = null;
                  for (int i = 0; i &lt; dataGridView1.Rows.Count - 1; i++)
                  {
                      dr = ds.Table2.NewRow();
                      dr[&quot;Nr&quot;] = dataGridView1.Rows[i].Cells[0].Value.ToString();
                      dr[&quot;Ary&quot;] = dataGridView1.Rows[i].Cells[1].Value.ToString();
                      dr[&quot;Car&quot;] = dataGridView1.Rows[i].Cells[2].Value.ToString();
                      dr[&quot;Total&quot;] = dataGridView1.Rows[i].Cells[3].Value.ToString();
                      dr[&quot;Total2&quot;] = dataGridView1.Rows[i].Cells[4].Value.ToString();
                      // MessageBox.Show(dr[&quot;Vetura&quot;].ToString());
                      ds.Table2.Rows.Add(dr);
                      dt.AcceptChanges();
                  }
  
                  dr.AcceptChanges();
  
                 
  
                  string exeFolder = (Path.GetDirectoryName(Application.StartupPath)).Substring(0, (Path.GetDirectoryName(Application.StartupPath)).Length - 3);
                  string reportPath = Path.Combine(exeFolder, @&quot;Report1.rdlc&quot;);
                  //MessageBox.Show(reportPath.ToString());
                  Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource(&quot;DataSet2&quot;, ds.Tables[0]);
                  ra.reportViewer1.LocalReport.DataSources.Clear();
                  ra.reportViewer1.LocalReport.DataSources.Add(rds);
                  ra.reportViewer1.LocalReport.ReportPath = reportPath;
                  if (textBox2.TextLength &gt; 0)
                  {
                      ReportParameter Percentage = new Microsoft.Reporting.WinForms.ReportParameter(&quot;Percentage&quot;, &quot;-&quot; + textBox2.Text + &quot;%&quot;);
                      ReportParameter Total = new Microsoft.Reporting.WinForms.ReportParameter(&quot;Total&quot;, textBox3.Text);
                      ra.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { Percentage });
                      ra.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { Total });
                  }
                  //HERE IS THE FIRST ERROR , WHEN I PASS THE THE TEXT TO THE PARAMETER
                  ReportParameter Klienti = new Microsoft.Reporting.WinForms.ReportParameter(&quot;Klienti&quot;, textBox1.Text);
                  ra.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { Klienti });
                  ra.reportViewer1.RefreshReport();
  </code></pre>