DWright Posted March 23, 2004 Posted March 23, 2004 (edited) .NET SecurityPermissions error I have an application installed on about 30 machines and all is running fine except for one PC which has shown an error : "The application tried to perform an operation not allowed by the security policy. The operation required the SecurutyException To grant this application the required permissions please contact your system administrator, or use the Microdoft .NET security policy adminstrator tool. click continue, yadda yadaa type message Request for the permission of type System.Security.Permissions.SecurityPermissions, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561924e089 failed" Now this happens when I am trying to get the users login name with System.Username (I think that's right I'm at home right now but that'll be close) Any ideas how to either find the security policy editor or resolve the problem without it ? Edited March 23, 2004 by DWright Quote
Moderators Robby Posted March 23, 2004 Moderators Posted March 23, 2004 Does that machine have the .NET Framework? Quote Visit...Bassic Software
DWright Posted March 23, 2004 Author Posted March 23, 2004 Okay solved it. It would appear that for some reason it wasn't running the local .NET application and instead the shortcut was now pointing at the server to run the .EXE, which I've now found out does need additional security setting up. But change the shorcut to point to the local copy and hey-presto it all works fine :) And yes all machines have .NET installed, it's another error message if .NET isn't installed which I can't remember off the top of my head Quote
Moderators Robby Posted March 23, 2004 Moderators Posted March 23, 2004 Actualy I've seen 'System.Security.Permissions.SecurityPermissions, mscorlib' when the framework is missing. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.