C# application not running on different machines
<p>I have a C# application that loads fine on my development machine but fails to even start on Win2008 machine.</p>

<p>Checked Frameworks and they match up, Net 4.0</p>

<p>I immediately suspected the problem was arising from references to specific files that I was reading from and sure enough, using some test code I narrowed it down to a single line.</p>

<pre><code>public static string[] salesArray = (File.ReadAllLines("sales.txt").ToArray());
</code></pre>

<p>If I comment out the above line, the test app starts, if I leave it in, it fails.  Any ideas?</p>

<p>I am copying the Debug directory to the second machine (sales.txt) within it.</p>

<p>This is the entire code.  The app does nothing but open a blank window.</p>

<pre><code>namespace testServer
{
    public partial class Form1 : Form
    {

        public static string[] salesArray = (File.ReadAllLines("sales.txt").ToArray());

        public Form1()
        {
            InitializeComponent();
        }
    }
}
</code></pre>
