title: System.IndexOutOfRangeException: Index was out of bounds
body: <p>I have a program in C# that works fine when I run it in Visual Studio.</p>
  
  <p>But when I run the  file I get an error in main.</p>
  
  <p>The error is:</p>
  
  <p><em>Unhandled Exception: System.IndexOutOfRangeException: Index was out of bounds of the array</em></p>
  
  <p>My main:
  The error Is at <em>int tala = convert.toInt32...</em></p>
  
  <pre><code>namespace MultiplicationTable
  {
      class Program
      {
          static void Main(string[] args)
          {
              int tala = Convert.ToInt32(args[0]);
              MultiplicationTable test = new MultiplicationTable(tala);
              Console.ReadLine();
          }
      }
  }
  </code></pre>
  
  <p>Any ideas?</p>