I have a program in C# that works fine when I run it in Visual Studio.

But when I run the file I get an error in main.

The error is:

*Unhandled Exception: System.IndexOutOfRangeException: Index was out of bounds of the array*

My main:
The error Is at *int tala = convert.toInt32...*

```
namespace MultiplicationTable
{
    class Program
    {
        static void Main(string[] args)
        {
            int tala = Convert.ToInt32(args[0]);
            MultiplicationTable test = new MultiplicationTable(tala);
            Console.ReadLine();
        }
    }
}

```

Any ideas?