The error is : "Request for permission of type "'System.Security.Permission.FileIOPermission. mscorlib. "Version = 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"
When you run in from
the network, from a command line or explorer shell, the .NET Frameworks
runtime is applying the Code Acess Security (CAS) policy based on it's
location, i.e. it get's Intranet permissions. Copying the exe
to your local drive, ClickOnce publishing and then installing the application.
Related Terminology : Click once deployment, Code Access Security
|