Security exception running from network
-
I have written my first .NET app (yes, I'm a .NET newbie) very simple app just testing out some of the form functionality. Everything works well on my machine but when I copy it to our network and execute it from there I get a System.Security.SecurityException thrown (Additional Information: "Request Failed") when creating the main form, Form1. I know this is probably something simple but would really appreciate the help. I haven't done anything related to security yet (at least not that I know of!) so I would have thought that security wasn't an issue Help! I'm going nuts thanks in advance CJE
-
I have written my first .NET app (yes, I'm a .NET newbie) very simple app just testing out some of the form functionality. Everything works well on my machine but when I copy it to our network and execute it from there I get a System.Security.SecurityException thrown (Additional Information: "Request Failed") when creating the main form, Form1. I know this is probably something simple but would really appreciate the help. I haven't done anything related to security yet (at least not that I know of!) so I would have thought that security wasn't an issue Help! I'm going nuts thanks in advance CJE
- Open Control Panel -> Administrative Tools -> Microsoft .NET Framework Configuration. 2) Expand Runtime Security Policy -> Machine -> Code Groups -> All Code. 3) Select Properties from the right-click menu of LocalIntranet_Zone. 4) On the Permission Set tab change the Permission Set to FullTrust.
-
- Open Control Panel -> Administrative Tools -> Microsoft .NET Framework Configuration. 2) Expand Runtime Security Policy -> Machine -> Code Groups -> All Code. 3) Select Properties from the right-click menu of LocalIntranet_Zone. 4) On the Permission Set tab change the Permission Set to FullTrust.
-
This is not necessarily the best idea. You're saying that you fully trust ANY code running from the Intranet zone. If you're so sure, you could do this, but a better way is to right-click on either All_Code under the machine policy, or the Intranet_Zone and add a new Url membership using the server name and directory like so: file://SERVERNAME/Directory/* (you can use more directories if you like). If you did this with the Internet_Zone code group, you're opening your machine up for any kind of .NET attack possible. The Intranet_Zone could contain code just as harmful, either intentionally or unintentionally. You'd be better off managing separate code groups for your applications and leaving the default permissions.
-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----