Jump to content
  • Advertisement
Sign in to follow this  
martin_bfg10k

[.net] Running an exe from a local network

This topic is 3472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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:/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!