title: Microsoft reporting parameters not reset
body: <p>I have some very customized reports that I designed using <code>Microsoft Reporting rdlc</code> files. In first report I use <strong>43</strong> parameters so:</p>
  
  <p><code>R_1_1</code>,<code>R_1_2</code>,<code>R_1_3</code>,<code>R_1_4</code>,<code>R_1_5</code>,<code>R_1_6</code>,<code>R_2_1</code>,<code>R_2_2</code>,...</p>
  
  <p>In second report I have <strong>78</strong> parameters so:</p>
  
  <p><code>R_1_1</code>,<code>R_1_2</code>,<code>R_1_3</code>,<code>R_1_4</code>,<code>R_1_5</code>,<code>R_1_6</code>,<code>R_1_7</code>,<code>R_1_8</code>,<code>R_2_1</code>,<code>R_2_2</code>,...</p>
  
  <p>and I use this code for bind reports:</p>
  
  <pre><code>this.ReportViewer.LocalReport.ReportPath = BaseAddress + drpReportNumber.SelectedValue.Trim() + ".rdlc";
      this.ReportViewer.LocalReport.Refresh();
  
      this.ReportViewer.LocalReport.DataSources.Clear();
      Microsoft.Reporting.WebForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WebForms.ReportDataSource("DataSet1", new DataTable("DataSet1"));
      this.ReportViewer.LocalReport.DataSources.Add(rprtDTSource);
      this.ReportViewer.LocalReport.Refresh();
  
      if (parameters != null &amp;&amp; parameters.Count &gt; 0)
      {
          for (int i = 0; i &lt; parameters.Count; i++)
          {
              ReportParameter p = new ReportParameter(parameters[i].ParameterName, parameters[i].ParameterValue);
              this.ReportViewer.LocalReport.SetParameters(p);
          }
      }
  </code></pre>
  
  <p>The problem is when I create first report then I want also create the second report, report viewer raise this error:</p>
  
  <blockquote>
    <p>{"An attempt was made to set a report parameter 'R_1_7' that is not defined in this report."}</p>
  </blockquote>
  
  <p>I have two questions;</p>
  
  <ol>
  <li><p>Is there any limitation for parameters count?</p></li>
  <li><p>I think when I bind ReportViewer to first report it does not contains <code>R_1_7</code>, and in second times parameters list does not reset and it use first parameters list. How I can solve this problem?</p></li>
  </ol>