title: An error occurred during local report processing in setparameters
body: <p>I am trying to process a local report but getting errors in setparameters.
  here is the sample code.</p>
  
  <p>r.ProcessingMode = ProcessingMode.Local</p>
  
  <pre><code>    Dim lr As LocalReport = r.LocalReport
  
      lr.ReportEmbeddedResource = "Gy.Report1.rdlc"
  </code></pre>
  
  <p>'note report is blank.</p>
  
  <pre><code>    Dim dss As New DataSet
      Dim daa As New SqlDataAdapter("select * from c_inventory", cn)
      cn.Open()
      daa.Fill(dss, "c_inventory")
      cn.Close()
  
      Dim dss1 As New ReportDataSource
      dss1.Name = "c_inventory"
      dss1.Value = dss.Tables("c_inventory")
  
      lr.DataSources.Add(dss1)
      r.RefreshReport()
  
  
      'Create a report parameter for the sales order number 
      Dim rpfilled As New ReportParameter()
      rpfilled.Name = "filled"
      rpfilled.Values.Add("0")
  
  
      Dim param() As ReportParameter = {rpfilled}
      lr.SetParameters(param)
  </code></pre>