System.Security.Permissions.FileIOPermission when accessing folder outside web site location
<p>Environment: Windows 2008 R2 x64 [IIS7.5]</p>

<p>From my asp.net application, I am trying to access a folder that is not under web application folder itself. It is something like DirectoryInfo("D:\MySecretFolder")
I get thrown the following error.</p>

<blockquote>
  <p>'System.Security.Permissions.FileIOPermission, mscorlib,
  Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
  failed</p>
</blockquote>

<p>Application pool is using NetworkService account as its identity and I have given that account full rights on that folder. Is there anything else I am missing.</p>

<p>Thanks</p>
