I have a program that I am trying to use over a network drive. The program runs fine on the local drive, but it locks up when I try to run it over the network drive. I used the following code to set the security permissions for the shared folder:

"C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe" -q -machine -addgroup 1.2 -url "file://server/custom programs/*" FullTrust -name "Custom_programs"

When I hit the close button to end the program, I get the error "The application tried to perform a operation not allowed by the security policy."

Doers anyone know why it is not working?