title: The source of the report definition has not been specified
body: <p>I'm using the following code with which I'm trying to SetParametr :</p>
  <pre><code>    var report = new ReportParameter[1];
      report[0] = new ReportParameter(&quot;MyName&quot;, &quot;Raha&quot;);
      var reportDataSource1 = new ReportDataSource { Name = &quot;WpfApplication17_User&quot;, Value = _users };
  
  
      _reportViewer.LocalReport.DataSources.Add(reportDataSource1);
      _reportViewer.ServerReport.SetParameters(report);
      _reportViewer.LocalReport.ReportPath = &quot;../../Report1.rdlc&quot;;
  
      _reportViewer.RefreshReport();
  </code></pre>
  <p>error : The source of the report definition has not been specified</p>
  <p>Why is it wrong?</p>
  <p>I've created a report parameter, the Parameters name is 'MyName'</p>
  <p>UPDATE :</p>
  <p>I'm using the following code :</p>
  <pre><code>    //var report = new ReportParameter[1];
      //report[0] = new ReportParameter(&quot;MyName&quot;, &quot;Raha&quot;);
  
  
      var reportDataSource1 = new ReportDataSource { Name = &quot;WpfApplication17_User&quot;, Value = _users };
  
      string exeFolder = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
     
      _reportViewer.LocalReport.ReportPath =exeFolder + @&quot;\Reports\Report1.rdlc&quot;;
  
  
      _reportViewer.LocalReport.DataSources.Add(reportDataSource1);
  
      //_reportViewer.ServerReport.SetParameters(report);
  
      _reportViewer.RefreshReport();
  </code></pre>
  <p>data has displayed in the Report.</p>
  <p>but , I'm using the following code :</p>
  <pre><code>   var report = new ReportParameter[1];
              report[0] = new ReportParameter(&quot;MyName&quot;, &quot;Raha&quot;);
  
  
              var reportDataSource1 = new ReportDataSource { Name = &quot;WpfApplication17_User&quot;, Value = _users };
  
              string exeFolder = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
  
              _reportViewer.LocalReport.ReportPath = exeFolder + @&quot;\Reports\Report1.rdlc&quot;;
  
  
              _reportViewer.LocalReport.DataSources.Add(reportDataSource1);
  
              _reportViewer.ServerReport.SetParameters(report);//error
  
              _reportViewer.RefreshReport();
  </code></pre>
  <p>error as : The source of the report definition has not been specified</p>