I am using GetFiles to list all the files in a directory.
If the directory is local, my program works fine.
If the directory is on a network I get:
"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
I can use Windows explorer to completely manipulate the folder and the files any way I want.
I am assuming I have to code this permission in, but I can't find any references as to how to do it.
If the directory is local, my program works fine.
If the directory is on a network I get:
"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
I can use Windows explorer to completely manipulate the folder and the files any way I want.
I am assuming I have to code this permission in, but I can't find any references as to how to do it.