StreamReader from remote server
<p>I am reading a large text file from a remote server (arnd 9gb).</p>

<p>When reading the file from remote server, the code is missing a large amount of the file and completing. When I move the file to the local server and read from there, it reads the entire file with no issues. </p>

<p>example:</p>

<pre><code>Dictionary&lt;string, string&gt; NewFile = new Dictionary&lt;string, string&gt;();

string File = @"\\filesystem1\fileshare\rs\" + Session["Region"].ToString() + ".csv";

using (StreamReader str = new StreamReader(File, Encoding.ASCII))
      {
           string toread;
           while ((toread = str.ReadLine()) != null) //str.Peek() &gt;= 0)
              {
                 //string[] line = str.ReadLine().Split(',');
                 string[] line = toread.Split(',');
                 NewFile.Add(line[2], line[0]);
               }
       }
</code></pre>

<p>Any ideas what could be causing the read to skip lines when reading from a server? The file should actually have about 250k entries but my var usually loads about 75k.</p>

<p>Regards</p>
