title: ReportViewer, Index outside the bounds of array (RDLC report) C#
body: <p>I am trying to generate a rdlc report, and right now dataSet is throwing an exception. i.e "Index was outside the bounds of the array."</p>
  
  <p>In command view, I get following error in command window.</p>
  
  <pre><code>&gt;? dataTable.GetErrors()[0]
  
     'dataTable.GetErrors()[0]' threw an exception of type 
     'System.IndexOutOfRangeException'
  
  Data: {System.Collections.ListDictionaryInternal}
  HResult: -2146233080
  HelpLink: null
  IPForWatsonBuckets: {0}
  InnerException: null
  IsTransient: false
  Message: "Index was outside the bounds of the array."
  RemoteStackTrace: null
  Source: null
  StackTrace: null
  TargetSite: null
  WatsonBuckets: null
  _HResult: -2146233080
  _className: null
  _data: {System.Collections.ListDictionaryInternal}
  _dynamicMethods: null
  _exceptionMethod: null
  _exceptionMethodString: null
  _helpURL: null
  _innerException: null
  _ipForWatsonBuckets: {0}
  _message: "Index was outside the bounds of the array."
  _remoteStackIndex: 0
  _remoteStackTraceString: null
  _safeSerializationManager: {System.Runtime.Serialization.SafeSerializationManager}
  _source: null
  _stackTrace: null
  _stackTraceString: null
  _watsonBuckets: null
  _xcode: -532462766
  _xptrs: {0}
  </code></pre>
  
  <p>on historical debugging, it points toward these codes</p>
  
  <pre><code>public virtual int Fill(ReportDataSet.DataTable1DataTable dataTable)
  {
      this.Adapter.SelectCommand = this.CommandCollection[0];
      if ((this.ClearBeforeFill == true))
      {
          dataTable.Clear();
      }
  
      int returnValue = Adapter.Fill(dataTable);
  
      return returnValue;
  }
  </code></pre>
  
  <p>Report viewer remains blank. any suggestions? </p>