[.net] Running an exe from a local network

Started by
1 comment, last by martin_bfg10k 15 years, 4 months ago
Hi. I have a problem with a program that I made with C# It a simple windws form with few controls, like buttons, and a datagridview. When I run the program in my pc there is no problem, but when I put the same program in another pc, and try to run it through local network, it fails, given the an error message like: "Application attemp to perform an operation not allowed by the security policy" "System.Security.Permissions.UIPermission, mscorelib, Version=2.0.0.0, Culture=neutral, PublicKeyToken= b77a5c561934r089" must I set some kind of permission in the program, allowing me to run it in a local network? If so, how can I do it? Thanks in advance.
Advertisement
If you upgrade to .NET 3.5 SP1, you'll notice that a change was made which should allow your application to work without change.

If that's not an option, this might help.
Thank you so much! I fixed it running the command:

caspol -q -machine -addgroup 1 -url file://z:/* FullTrust -name "Z Drive"

In mi case, the shared folder was named as y:/

This topic is closed to new replies.

Advertisement