I have a program I have recently compiled that I want to put out on our intranet. It works fine on my machine, but if I try to run it from the intranet location, I get an...
"Application tried to perform an operation not allowed by security policy error" System.Security.SecurityException: Request failed
...when the program tries to access it's database(also located on our intranet). I have looked into setting security policy with caspol but I have had zero luck in getting it to work. Here is the command I'm using(taken from MSDN):
SCBCTesting is my namespace. I'm not sure what "code groups" are so I may be way off.
Can anyone help steer me in the right direction on this? Is there any way this can be done with C# code?
Thanks for any help!
--Brad
"Application tried to perform an operation not allowed by security policy error" System.Security.SecurityException: Request failed
...when the program tries to access it's database(also located on our intranet). I have looked into setting security policy with caspol but I have had zero luck in getting it to work. Here is the command I'm using(taken from MSDN):
Code:
CD %windir%\microsoft.net\framework\v1.1.4322
caspol.exe -polchgprompt off -user -addgroup 1 -allcode Nothing -name "SCBCTesting" -user -addgroup SCBCTesting -url "file:\\scbcmain\data\Testing\SCBCTesting.exe" FullTrust -name "SCBCTesting"
caspol.exe -polchgprompt on
SCBCTesting is my namespace. I'm not sure what "code groups" are so I may be way off.
Can anyone help steer me in the right direction on this? Is there any way this can be done with C# code?
Thanks for any help!
--Brad