System.IO.PathTooLongException when path is way shorter
<p>I've seen this topic has been beaten to death but in my case .Net framework seems to be confused. I get the <code>System.IO.PathTooLongException</code> but the path is 151 characters long. I'm using UNC format with a fully qualified domain name of the shared folder which is 8 levels down from the root. The last folder has spaces in it which I would imagine should not affect things but I'm not sure.</p>

<p>I'm using a 4.0 framework, server is on the domain, user is trying to navigate to a location using HTML Input file type control. I'm using impersonation with a domain account who has at least read permissions to the remote share.</p>

<p>I also wanto point out that in my dev environment VS2010 it works fine - only happens when I publish it to test with a rescticted coporate sec policy.</p>

<p>Does anyone have an idea as why this error if path is way below the "too long" limit?</p>
