FormatException in while loop c#/asp.net mvc application
<p>What is the problem with this conditional loop:</p>

<pre><code> while (System.IO.File.Exists(relPath)){ ... }
</code></pre>

<p>It trows an exception when it starts:</p>

<blockquote>
  <p>Exception Details: System.FormatException: Index (zero based) must be
  greater than or equal to zero and less than the size of the argument
  list</p>
</blockquote>

<p>The relPath string value is a "/Temp/pdfs/file.ext".
Any help?</p>
