I don't need any access whatsoever to any other part of the filesystem, btw.
How about using the FileIOPermission constructor that allows you to specify
the file access type and the path. You'll probably want to use
FileIOPermissionAccess.AllAccess.
HTH,
Nicole
"Ayende Rahien" <Aye...@nospam.com> wrote in message
news:OeEPqTG...@tk2msftngp13.phx.gbl...
If I understood it right you want to demand this permission at runtime...
You could do this with an imperative security demand:
string pathApp = AppDomain.CurrentDomain.BaseDirectory;
FileIOPermission fp = new
FileIOPermission(FileIOPermissionAccess.AllAccess, pathApp);
fp.Demand();
Regards,
Fernando
"Ayende Rahien" <Aye...@nospam.com> wrote in message
news:OeEPqTG...@tk2msftngp13.phx.gbl...